Interface StackResource.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<StackResource.Builder,StackResource>,SdkBuilder<StackResource.Builder,StackResource>,SdkPojo
- Enclosing class:
- StackResource
@Mutable @NotThreadSafe public static interface StackResource.Builder extends SdkPojo, CopyableBuilder<StackResource.Builder,StackResource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StackResource.Builderdescription(String description)User defined description associated with the resource.default StackResource.BuilderdriftInformation(Consumer<StackResourceDriftInformation.Builder> driftInformation)Information about whether the resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters.StackResource.BuilderdriftInformation(StackResourceDriftInformation driftInformation)Information about whether the resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters.StackResource.BuilderlogicalResourceId(String logicalResourceId)The logical name of the resource specified in the template.default StackResource.BuildermoduleInfo(Consumer<ModuleInfo.Builder> moduleInfo)Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.StackResource.BuildermoduleInfo(ModuleInfo moduleInfo)Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.StackResource.BuilderphysicalResourceId(String physicalResourceId)The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation.StackResource.BuilderresourceStatus(String resourceStatus)Current status of the resource.StackResource.BuilderresourceStatus(ResourceStatus resourceStatus)Current status of the resource.StackResource.BuilderresourceStatusReason(String resourceStatusReason)Success/failure message associated with the resource.StackResource.BuilderresourceType(String resourceType)Type of resource.StackResource.BuilderstackId(String stackId)Unique identifier of the stack.StackResource.BuilderstackName(String stackName)The name associated with the stack.StackResource.Buildertimestamp(Instant timestamp)Time the status was updated.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
stackName
StackResource.Builder stackName(String stackName)
The name associated with the stack.
- Parameters:
stackName- The name associated with the stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stackId
StackResource.Builder stackId(String stackId)
Unique identifier of the stack.
- Parameters:
stackId- Unique identifier of the stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logicalResourceId
StackResource.Builder logicalResourceId(String logicalResourceId)
The logical name of the resource specified in the template.
- Parameters:
logicalResourceId- The logical name of the resource specified in the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
physicalResourceId
StackResource.Builder physicalResourceId(String physicalResourceId)
The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation.
- Parameters:
physicalResourceId- The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
StackResource.Builder resourceType(String resourceType)
Type of resource. For more information, see Amazon Web Services resource and property types reference in the CloudFormation User Guide.
- Parameters:
resourceType- Type of resource. For more information, see Amazon Web Services resource and property types reference in the CloudFormation User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestamp
StackResource.Builder timestamp(Instant timestamp)
Time the status was updated.
- Parameters:
timestamp- Time the status was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceStatus
StackResource.Builder resourceStatus(String resourceStatus)
Current status of the resource.
- Parameters:
resourceStatus- Current status of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceStatus,ResourceStatus
-
resourceStatus
StackResource.Builder resourceStatus(ResourceStatus resourceStatus)
Current status of the resource.
- Parameters:
resourceStatus- Current status of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceStatus,ResourceStatus
-
resourceStatusReason
StackResource.Builder resourceStatusReason(String resourceStatusReason)
Success/failure message associated with the resource.
- Parameters:
resourceStatusReason- Success/failure message associated with the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
StackResource.Builder description(String description)
User defined description associated with the resource.
- Parameters:
description- User defined description associated with the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
driftInformation
StackResource.Builder driftInformation(StackResourceDriftInformation driftInformation)
Information about whether the resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detect unmanaged configuration changes to stacks and resources with drift detection.
- Parameters:
driftInformation- Information about whether the resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detect unmanaged configuration changes to stacks and resources with drift detection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
driftInformation
default StackResource.Builder driftInformation(Consumer<StackResourceDriftInformation.Builder> driftInformation)
Information about whether the resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detect unmanaged configuration changes to stacks and resources with drift detection.
This is a convenience method that creates an instance of theStackResourceDriftInformation.Builderavoiding the need to create one manually viaStackResourceDriftInformation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todriftInformation(StackResourceDriftInformation).- Parameters:
driftInformation- a consumer that will call methods onStackResourceDriftInformation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
driftInformation(StackResourceDriftInformation)
-
moduleInfo
StackResource.Builder moduleInfo(ModuleInfo moduleInfo)
Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.
- Parameters:
moduleInfo- Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
moduleInfo
default StackResource.Builder moduleInfo(Consumer<ModuleInfo.Builder> moduleInfo)
Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.
This is a convenience method that creates an instance of theModuleInfo.Builderavoiding the need to create one manually viaModuleInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomoduleInfo(ModuleInfo).- Parameters:
moduleInfo- a consumer that will call methods onModuleInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
moduleInfo(ModuleInfo)
-
-