Interface CreateServiceTemplateVersionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateServiceTemplateVersionRequest.Builder,
,CreateServiceTemplateVersionRequest> ProtonRequest.Builder
,SdkBuilder<CreateServiceTemplateVersionRequest.Builder,
,CreateServiceTemplateVersionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateServiceTemplateVersionRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) When included, if two identical requests are made with the same client token, Proton returns the service template version that the first request created.compatibleEnvironmentTemplates
(Collection<CompatibleEnvironmentTemplateInput> compatibleEnvironmentTemplates) An array of environment template objects that are compatible with the new service template version.compatibleEnvironmentTemplates
(Consumer<CompatibleEnvironmentTemplateInput.Builder>... compatibleEnvironmentTemplates) An array of environment template objects that are compatible with the new service template version.compatibleEnvironmentTemplates
(CompatibleEnvironmentTemplateInput... compatibleEnvironmentTemplates) An array of environment template objects that are compatible with the new service template version.description
(String description) A description of the new version of a service template.majorVersion
(String majorVersion) To create a new minor version of the service template, include amajor Version
.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.An object that includes the template bundle S3 bucket path and name for the new version of a service template.source
(TemplateVersionSourceInput source) An object that includes the template bundle S3 bucket path and name for the new version of a service template.supportedComponentSources
(Collection<ServiceTemplateSupportedComponentSourceType> supportedComponentSources) An array of supported component sources.supportedComponentSources
(ServiceTemplateSupportedComponentSourceType... supportedComponentSources) An array of supported component sources.supportedComponentSourcesWithStrings
(String... supportedComponentSources) An array of supported component sources.supportedComponentSourcesWithStrings
(Collection<String> supportedComponentSources) An array of supported component sources.tags
(Collection<Tag> tags) An optional list of metadata items that you can associate with the Proton service template version.tags
(Consumer<Tag.Builder>... tags) An optional list of metadata items that you can associate with the Proton service template version.An optional list of metadata items that you can associate with the Proton service template version.templateName
(String templateName) The name of the service template.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.proton.model.ProtonRequest.Builder
build
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
-
clientToken
When included, if two identical requests are made with the same client token, Proton returns the service template version that the first request created.
- Parameters:
clientToken
- When included, if two identical requests are made with the same client token, Proton returns the service template version that the first request created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
compatibleEnvironmentTemplates
CreateServiceTemplateVersionRequest.Builder compatibleEnvironmentTemplates(Collection<CompatibleEnvironmentTemplateInput> compatibleEnvironmentTemplates) An array of environment template objects that are compatible with the new service template version. A service instance based on this service template version can run in environments based on compatible templates.
- Parameters:
compatibleEnvironmentTemplates
- An array of environment template objects that are compatible with the new service template version. A service instance based on this service template version can run in environments based on compatible templates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
compatibleEnvironmentTemplates
CreateServiceTemplateVersionRequest.Builder compatibleEnvironmentTemplates(CompatibleEnvironmentTemplateInput... compatibleEnvironmentTemplates) An array of environment template objects that are compatible with the new service template version. A service instance based on this service template version can run in environments based on compatible templates.
- Parameters:
compatibleEnvironmentTemplates
- An array of environment template objects that are compatible with the new service template version. A service instance based on this service template version can run in environments based on compatible templates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
compatibleEnvironmentTemplates
CreateServiceTemplateVersionRequest.Builder compatibleEnvironmentTemplates(Consumer<CompatibleEnvironmentTemplateInput.Builder>... compatibleEnvironmentTemplates) An array of environment template objects that are compatible with the new service template version. A service instance based on this service template version can run in environments based on compatible templates.
This is a convenience method that creates an instance of theCompatibleEnvironmentTemplateInput.Builder
avoiding the need to create one manually viaCompatibleEnvironmentTemplateInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocompatibleEnvironmentTemplates(List<CompatibleEnvironmentTemplateInput>)
.- Parameters:
compatibleEnvironmentTemplates
- a consumer that will call methods onCompatibleEnvironmentTemplateInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A description of the new version of a service template.
- Parameters:
description
- A description of the new version of a service template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
majorVersion
To create a new minor version of the service template, include a
major Version
.To create a new major and minor version of the service template, exclude
major Version
.- Parameters:
majorVersion
- To create a new minor version of the service template, include amajor Version
.To create a new major and minor version of the service template, exclude
major Version
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
An object that includes the template bundle S3 bucket path and name for the new version of a service template.
- Parameters:
source
- An object that includes the template bundle S3 bucket path and name for the new version of a service template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
default CreateServiceTemplateVersionRequest.Builder source(Consumer<TemplateVersionSourceInput.Builder> source) An object that includes the template bundle S3 bucket path and name for the new version of a service template.
This is a convenience method that creates an instance of theTemplateVersionSourceInput.Builder
avoiding the need to create one manually viaTemplateVersionSourceInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosource(TemplateVersionSourceInput)
.- Parameters:
source
- a consumer that will call methods onTemplateVersionSourceInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
supportedComponentSourcesWithStrings
CreateServiceTemplateVersionRequest.Builder supportedComponentSourcesWithStrings(Collection<String> supportedComponentSources) An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
For more information about components, see Proton components in the Proton User Guide.
- Parameters:
supportedComponentSources
- An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.For more information about components, see Proton components in the Proton User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedComponentSourcesWithStrings
CreateServiceTemplateVersionRequest.Builder supportedComponentSourcesWithStrings(String... supportedComponentSources) An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
For more information about components, see Proton components in the Proton User Guide.
- Parameters:
supportedComponentSources
- An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.For more information about components, see Proton components in the Proton User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedComponentSources
CreateServiceTemplateVersionRequest.Builder supportedComponentSources(Collection<ServiceTemplateSupportedComponentSourceType> supportedComponentSources) An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
For more information about components, see Proton components in the Proton User Guide.
- Parameters:
supportedComponentSources
- An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.For more information about components, see Proton components in the Proton User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedComponentSources
CreateServiceTemplateVersionRequest.Builder supportedComponentSources(ServiceTemplateSupportedComponentSourceType... supportedComponentSources) An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
For more information about components, see Proton components in the Proton User Guide.
- Parameters:
supportedComponentSources
- An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.For more information about components, see Proton components in the Proton User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An optional list of metadata items that you can associate with the Proton service template version. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
- Parameters:
tags
- An optional list of metadata items that you can associate with the Proton service template version. A tag is a key-value pair.For more information, see Proton resources and tagging in the Proton User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An optional list of metadata items that you can associate with the Proton service template version. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
- Parameters:
tags
- An optional list of metadata items that you can associate with the Proton service template version. A tag is a key-value pair.For more information, see Proton resources and tagging in the Proton User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An optional list of metadata items that you can associate with the Proton service template version. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
templateName
The name of the service template.
- Parameters:
templateName
- The name of the service template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateServiceTemplateVersionRequest.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
CreateServiceTemplateVersionRequest.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.
-