Class CfnResourceTrait

java.lang.Object
software.amazon.smithy.model.traits.AbstractTrait
software.amazon.smithy.aws.cloudformation.traits.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.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
    static final class 
     
  • Field Summary

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

    Modifier and Type
    Method
    Description
     
    protected software.amazon.smithy.model.node.Node
     
    List<software.amazon.smithy.model.shapes.ShapeId>
    Get the Smithy structure shape Ids for additional schema properties.
    Get the AWS CloudFormation resource name.
    software.amazon.smithy.utils.SmithyBuilder<CfnResourceTrait>
     

    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 Details

    • ID

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

    • getName

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

      public 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.
    • builder

      public static CfnResourceTrait.Builder builder()
    • 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>