public final class CfnResource extends java.lang.Object implements ToSmithyBuilder<CfnResource>
Modifier and Type | Class and Description |
---|---|
static class |
CfnResource.Builder |
Modifier and Type | Method and Description |
---|---|
static CfnResource.Builder |
builder() |
java.util.List<java.util.Set<java.lang.String>> |
getAdditionalIdentifiers()
Get a list of sets of member shape ids, each set can be used to identify
the CloudFormation resource in addition to its primary identifier(s).
|
java.util.Set<java.lang.String> |
getCreateOnlyProperties()
Get create-specifiable-only property definitions of the CloudFormation resource.
|
java.util.Set<ShapeId> |
getExcludedProperties()
Get members that have been explicitly excluded from the CloudFormation
resource.
|
java.util.Set<java.lang.String> |
getPrimaryIdentifiers()
Gets a set of identifier names that represent the primary way to identify
a CloudFormation resource.
|
java.util.Map<java.lang.String,CfnResourceProperty> |
getProperties()
Get all property definitions of the CloudFormation resource.
|
java.util.Optional<CfnResourceProperty> |
getProperty(java.lang.String propertyName)
Gets the definition of the specified property of the CloudFormation resource.
|
java.util.Set<java.lang.String> |
getReadOnlyProperties()
Get read-only property definitions of the CloudFormation resource.
|
java.util.Set<java.lang.String> |
getWriteOnlyProperties()
Get write-only property definitions of the CloudFormation resource.
|
CfnResource.Builder |
toBuilder()
Take this object and create a builder that contains all of the
current property values of this object.
|
public static CfnResource.Builder builder()
public java.util.Map<java.lang.String,CfnResourceProperty> getProperties()
Properties excluded by the cfnExcludedProperty
trait are not
returned.
getExcludedProperties()
public java.util.Optional<CfnResourceProperty> getProperty(java.lang.String propertyName)
An empty Optional
will be returned if the requested property
has been excluded by the cfnExcludedProperty
trait.
propertyName
- Name of the property to retrievegetExcludedProperties()
public java.util.Set<java.lang.String> getCreateOnlyProperties()
read
or list
request.public java.util.Set<java.lang.String> getReadOnlyProperties()
read
or list
request,
but cannot be set by the user.public java.util.Set<java.lang.String> getWriteOnlyProperties()
read
or list
request.public java.util.Set<ShapeId> getExcludedProperties()
public java.util.Set<java.lang.String> getPrimaryIdentifiers()
public java.util.List<java.util.Set<java.lang.String>> getAdditionalIdentifiers()
public CfnResource.Builder toBuilder()
ToSmithyBuilder
toBuilder
in interface ToSmithyBuilder<CfnResource>