Class ServerObject
- java.lang.Object
-
- software.amazon.smithy.openapi.model.Component
-
- software.amazon.smithy.openapi.model.ServerObject
-
- All Implemented Interfaces:
ToNode
,ToSmithyBuilder<ServerObject>
public final class ServerObject extends Component implements ToSmithyBuilder<ServerObject>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerObject.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerObject.Builder
builder()
protected ObjectNode.Builder
createNodeBuilder()
java.util.Optional<java.lang.String>
getDescription()
java.lang.String
getUrl()
java.util.Map<java.lang.String,ObjectNode>
getVariables()
boolean
isEmpty()
ServerObject.Builder
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.-
Methods inherited from class software.amazon.smithy.openapi.model.Component
equals, getExtension, getExtensions, hashCode, toNode
-
-
-
-
Method Detail
-
builder
public static ServerObject.Builder builder()
-
isEmpty
public boolean isEmpty()
-
getUrl
public java.lang.String getUrl()
-
getDescription
public java.util.Optional<java.lang.String> getDescription()
-
getVariables
public java.util.Map<java.lang.String,ObjectNode> getVariables()
-
toBuilder
public ServerObject.Builder toBuilder()
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<ServerObject>
- Returns:
- a builder for type T
-
createNodeBuilder
protected ObjectNode.Builder createNodeBuilder()
- Specified by:
createNodeBuilder
in classComponent
-
-