Class ResourceSchema.Builder
- java.lang.Object
-
- software.amazon.smithy.aws.cloudformation.schema.model.ResourceSchema.Builder
-
- All Implemented Interfaces:
SmithyBuilder<ResourceSchema>
- Enclosing class:
- ResourceSchema
public static final class ResourceSchema.Builder extends java.lang.Object implements SmithyBuilder<ResourceSchema>
-
-
Method Summary
-
-
-
Method Detail
-
build
public ResourceSchema build()
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Specified by:
build
in interfaceSmithyBuilder<ResourceSchema>
- Returns:
- an instance of T
-
typeName
public ResourceSchema.Builder typeName(java.lang.String typeName)
-
description
public ResourceSchema.Builder description(java.lang.String description)
-
sourceUrl
public ResourceSchema.Builder sourceUrl(java.lang.String sourceUrl)
-
documentationUrl
public ResourceSchema.Builder documentationUrl(java.lang.String documentationUrl)
-
definitions
public ResourceSchema.Builder definitions(java.util.Map<java.lang.String,Schema> definitions)
-
addDefinition
public ResourceSchema.Builder addDefinition(java.lang.String name, Schema definition)
-
removeDefinition
public ResourceSchema.Builder removeDefinition(java.lang.String name)
-
clearDefinitions
public ResourceSchema.Builder clearDefinitions()
-
properties
public ResourceSchema.Builder properties(java.util.Map<java.lang.String,Property> properties)
-
addProperty
public ResourceSchema.Builder addProperty(java.lang.String name, Property property)
-
removeProperty
public ResourceSchema.Builder removeProperty(java.lang.String name)
-
clearProperties
public ResourceSchema.Builder clearProperties()
-
required
public ResourceSchema.Builder required(java.util.Collection<java.lang.String> required)
-
addRequired
public ResourceSchema.Builder addRequired(java.lang.String required)
-
removeRequired
public ResourceSchema.Builder removeRequired(java.lang.String required)
-
clearRequired
public ResourceSchema.Builder clearRequired()
-
addReadOnlyProperty
public ResourceSchema.Builder addReadOnlyProperty(java.lang.String propertyRef)
-
readOnlyProperties
public ResourceSchema.Builder readOnlyProperties(java.util.Collection<java.lang.String> readOnlyProperties)
-
clearReadOnlyProperties
public ResourceSchema.Builder clearReadOnlyProperties()
-
addWriteOnlyProperty
public ResourceSchema.Builder addWriteOnlyProperty(java.lang.String propertyRef)
-
writeOnlyProperties
public ResourceSchema.Builder writeOnlyProperties(java.util.Collection<java.lang.String> writeOnlyProperties)
-
clearWriteOnlyProperties
public ResourceSchema.Builder clearWriteOnlyProperties()
-
primaryIdentifier
public ResourceSchema.Builder primaryIdentifier(java.util.Collection<java.lang.String> primaryIdentifier)
-
clearPrimaryIdentifier
public ResourceSchema.Builder clearPrimaryIdentifier()
-
addCreateOnlyProperty
public ResourceSchema.Builder addCreateOnlyProperty(java.lang.String propertyRef)
-
createOnlyProperties
public ResourceSchema.Builder createOnlyProperties(java.util.Collection<java.lang.String> createOnlyProperties)
-
clearCreateOnlyProperties
public ResourceSchema.Builder clearCreateOnlyProperties()
-
addDeprecatedProperty
public ResourceSchema.Builder addDeprecatedProperty(java.lang.String propertyRef)
-
deprecatedProperties
public ResourceSchema.Builder deprecatedProperties(java.util.Collection<java.lang.String> deprecatedProperties)
-
clearDeprecatedProperties
public ResourceSchema.Builder clearDeprecatedProperties()
-
addAdditionalIdentifier
public ResourceSchema.Builder addAdditionalIdentifier(java.util.List<java.lang.String> additionalIdentifier)
-
additionalIdentifiers
public ResourceSchema.Builder additionalIdentifiers(java.util.List<java.util.List<java.lang.String>> additionalIdentifiers)
-
clearAdditionalIdentifiers
public ResourceSchema.Builder clearAdditionalIdentifiers()
-
handlers
public ResourceSchema.Builder handlers(java.util.Map<java.lang.String,Handler> handlers)
-
addHandler
public ResourceSchema.Builder addHandler(java.lang.String name, Handler handler)
-
removeHandler
public ResourceSchema.Builder removeHandler(java.lang.String name)
-
clearHandlers
public ResourceSchema.Builder clearHandlers()
-
remotes
public ResourceSchema.Builder remotes(java.util.Map<java.lang.String,Remote> remotes)
-
tagging
public ResourceSchema.Builder tagging(Tagging tagging)
-
addRemote
public ResourceSchema.Builder addRemote(java.lang.String name, Remote remote)
-
removeRemote
public ResourceSchema.Builder removeRemote(java.lang.String name)
-
clearRemotes
public ResourceSchema.Builder clearRemotes()
-
additionalProperties
public ResourceSchema.Builder additionalProperties(Schema additionalProperties)
-
-