Interface CreateGeneratedTemplateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudFormationRequest.Builder
,CopyableBuilder<CreateGeneratedTemplateRequest.Builder,
,CreateGeneratedTemplateRequest> SdkBuilder<CreateGeneratedTemplateRequest.Builder,
,CreateGeneratedTemplateRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateGeneratedTemplateRequest
-
Method Summary
Modifier and TypeMethodDescriptiongeneratedTemplateName
(String generatedTemplateName) The name assigned to the generated template.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.resources
(Collection<ResourceDefinition> resources) An optional list of resources to be included in the generated template.resources
(Consumer<ResourceDefinition.Builder>... resources) An optional list of resources to be included in the generated template.resources
(ResourceDefinition... resources) An optional list of resources to be included in the generated template.An optional name or ARN of a stack to use as the base stack for the generated template.templateConfiguration
(Consumer<TemplateConfiguration.Builder> templateConfiguration) The configuration details of the generated template, including theDeletionPolicy
andUpdateReplacePolicy
.templateConfiguration
(TemplateConfiguration templateConfiguration) The configuration details of the generated template, including theDeletionPolicy
andUpdateReplacePolicy
.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cloudformation.model.CloudFormationRequest.Builder
build
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, sdkFields
-
Method Details
-
resources
An optional list of resources to be included in the generated template.
If no resources are specified,the template will be created without any resources. Resources can be added to the template using the
UpdateGeneratedTemplate
API action.- Parameters:
resources
- An optional list of resources to be included in the generated template.If no resources are specified,the template will be created without any resources. Resources can be added to the template using the
UpdateGeneratedTemplate
API action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
An optional list of resources to be included in the generated template.
If no resources are specified,the template will be created without any resources. Resources can be added to the template using the
UpdateGeneratedTemplate
API action.- Parameters:
resources
- An optional list of resources to be included in the generated template.If no resources are specified,the template will be created without any resources. Resources can be added to the template using the
UpdateGeneratedTemplate
API action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
An optional list of resources to be included in the generated template.
If no resources are specified,the template will be created without any resources. Resources can be added to the template using the
This is a convenience method that creates an instance of theUpdateGeneratedTemplate
API action.ResourceDefinition.Builder
avoiding the need to create one manually viaResourceDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresources(List<ResourceDefinition>)
.- Parameters:
resources
- a consumer that will call methods onResourceDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
generatedTemplateName
The name assigned to the generated template.
- Parameters:
generatedTemplateName
- The name assigned to the generated template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stackName
An optional name or ARN of a stack to use as the base stack for the generated template.
- Parameters:
stackName
- An optional name or ARN of a stack to use as the base stack for the generated template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateConfiguration
CreateGeneratedTemplateRequest.Builder templateConfiguration(TemplateConfiguration templateConfiguration) The configuration details of the generated template, including the
DeletionPolicy
andUpdateReplacePolicy
.- Parameters:
templateConfiguration
- The configuration details of the generated template, including theDeletionPolicy
andUpdateReplacePolicy
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateConfiguration
default CreateGeneratedTemplateRequest.Builder templateConfiguration(Consumer<TemplateConfiguration.Builder> templateConfiguration) The configuration details of the generated template, including the
This is a convenience method that creates an instance of theDeletionPolicy
andUpdateReplacePolicy
.TemplateConfiguration.Builder
avoiding the need to create one manually viaTemplateConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totemplateConfiguration(TemplateConfiguration)
.- Parameters:
templateConfiguration
- a consumer that will call methods onTemplateConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateGeneratedTemplateRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateGeneratedTemplateRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-