Class CfnResource.Builder
- java.lang.Object
-
- software.amazon.smithy.aws.cloudformation.traits.CfnResource.Builder
-
- All Implemented Interfaces:
SmithyBuilder<CfnResource>
- Enclosing class:
- CfnResource
public static final class CfnResource.Builder extends java.lang.Object implements SmithyBuilder<CfnResource>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CfnResource.Builder
addAdditionalIdentifier(java.util.Set<java.lang.String> additionalIdentifier)
CfnResource.Builder
addExcludedProperty(ShapeId excludedProperty)
CfnResource.Builder
additionalIdentifiers(java.util.List<java.util.Set<java.lang.String>> additionalIdentifiers)
CfnResource.Builder
addPrimaryIdentifier(java.lang.String primaryIdentifier)
CfnResource
build()
Creates an immutable object that is created from the properties that have been set on the builder.CfnResource.Builder
excludedProperties(java.util.Set<ShapeId> excludedProperties)
boolean
hasPropertyDefinition(java.lang.String propertyName)
CfnResource.Builder
primaryIdentifiers(java.util.Set<java.lang.String> primaryIdentifiers)
CfnResource.Builder
propertyDefinitions(java.util.Map<java.lang.String,CfnResourceProperty> propertyDefinitions)
CfnResource.Builder
putPropertyDefinition(java.lang.String propertyName, CfnResourceProperty definition)
CfnResource.Builder
updatePropertyDefinition(java.lang.String propertyName, java.util.function.Function<CfnResourceProperty,CfnResourceProperty> updater)
-
-
-
Method Detail
-
hasPropertyDefinition
public boolean hasPropertyDefinition(java.lang.String propertyName)
-
putPropertyDefinition
public CfnResource.Builder putPropertyDefinition(java.lang.String propertyName, CfnResourceProperty definition)
-
updatePropertyDefinition
public CfnResource.Builder updatePropertyDefinition(java.lang.String propertyName, java.util.function.Function<CfnResourceProperty,CfnResourceProperty> updater)
-
propertyDefinitions
public CfnResource.Builder propertyDefinitions(java.util.Map<java.lang.String,CfnResourceProperty> propertyDefinitions)
-
addExcludedProperty
public CfnResource.Builder addExcludedProperty(ShapeId excludedProperty)
-
excludedProperties
public CfnResource.Builder excludedProperties(java.util.Set<ShapeId> excludedProperties)
-
addPrimaryIdentifier
public CfnResource.Builder addPrimaryIdentifier(java.lang.String primaryIdentifier)
-
primaryIdentifiers
public CfnResource.Builder primaryIdentifiers(java.util.Set<java.lang.String> primaryIdentifiers)
-
addAdditionalIdentifier
public CfnResource.Builder addAdditionalIdentifier(java.util.Set<java.lang.String> additionalIdentifier)
-
additionalIdentifiers
public CfnResource.Builder additionalIdentifiers(java.util.List<java.util.Set<java.lang.String>> additionalIdentifiers)
-
build
public CfnResource 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<CfnResource>
- Returns:
- an instance of T
-
-