Class CfnResourceTrait

  • All Implemented Interfaces:
    software.amazon.smithy.model.FromSourceLocation, software.amazon.smithy.model.node.ToNode, software.amazon.smithy.model.shapes.ToShapeId, software.amazon.smithy.model.traits.Trait, software.amazon.smithy.utils.ToSmithyBuilder<CfnResourceTrait>

    public final class CfnResourceTrait
    extends software.amazon.smithy.model.traits.AbstractTrait
    implements software.amazon.smithy.utils.ToSmithyBuilder<CfnResourceTrait>
    Indicates that a Smithy resource is a CloudFormation resource.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static software.amazon.smithy.model.shapes.ShapeId ID  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static CfnResourceTrait.Builder builder()  
      protected software.amazon.smithy.model.node.Node createNode()  
      java.util.List<software.amazon.smithy.model.shapes.ShapeId> getAdditionalSchemas()
      Get the Smithy structure shape Ids for additional schema properties.
      java.util.Optional<java.lang.String> getName()
      Get the AWS CloudFormation resource name.
      software.amazon.smithy.utils.SmithyBuilder<CfnResourceTrait> toBuilder()  
      • Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait

        equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface software.amazon.smithy.model.traits.Trait

        isSynthetic
    • Field Detail

      • ID

        public static final software.amazon.smithy.model.shapes.ShapeId ID
    • Method Detail

      • getName

        public java.util.Optional<java.lang.String> getName()
        Get the AWS CloudFormation resource name.
        Returns:
        Returns the name.
      • getAdditionalSchemas

        public java.util.List<software.amazon.smithy.model.shapes.ShapeId> getAdditionalSchemas()
        Get the Smithy structure shape Ids for additional schema properties.
        Returns:
        Returns the additional schema shape Ids.
      • createNode

        protected software.amazon.smithy.model.node.Node createNode()
        Specified by:
        createNode in class software.amazon.smithy.model.traits.AbstractTrait
      • toBuilder

        public software.amazon.smithy.utils.SmithyBuilder<CfnResourceTrait> toBuilder()
        Specified by:
        toBuilder in interface software.amazon.smithy.utils.ToSmithyBuilder<CfnResourceTrait>