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 classServerObject.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerObject.Builderbuilder()protected ObjectNode.BuildercreateNodeBuilder()java.util.Optional<java.lang.String>getDescription()java.lang.StringgetUrl()java.util.Map<java.lang.String,ObjectNode>getVariables()booleanisEmpty()ServerObject.BuildertoBuilder()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:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToSmithyBuilder<ServerObject>- Returns:
- a builder for type T
-
createNodeBuilder
protected ObjectNode.Builder createNodeBuilder()
- Specified by:
createNodeBuilderin classComponent
-
-