Interface AddTagsToOnPremisesInstancesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CodeDeployRequest.Builder
,CopyableBuilder<AddTagsToOnPremisesInstancesRequest.Builder,
,AddTagsToOnPremisesInstancesRequest> SdkBuilder<AddTagsToOnPremisesInstancesRequest.Builder,
,AddTagsToOnPremisesInstancesRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
AddTagsToOnPremisesInstancesRequest
-
Method Summary
Modifier and TypeMethodDescriptioninstanceNames
(String... instanceNames) The names of the on-premises instances to which to add tags.instanceNames
(Collection<String> instanceNames) The names of the on-premises instances to which to add tags.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tags
(Collection<Tag> tags) The tag key-value pairs to add to the on-premises instances.tags
(Consumer<Tag.Builder>... tags) The tag key-value pairs to add to the on-premises instances.The tag key-value pairs to add to the on-premises instances.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.codedeploy.model.CodeDeployRequest.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
-
tags
The tag key-value pairs to add to the on-premises instances.
Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
- Parameters:
tags
- The tag key-value pairs to add to the on-premises instances.Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag key-value pairs to add to the on-premises instances.
Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
- Parameters:
tags
- The tag key-value pairs to add to the on-premises instances.Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag key-value pairs to add to the on-premises instances.
Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
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:
-
instanceNames
The names of the on-premises instances to which to add tags.
- Parameters:
instanceNames
- The names of the on-premises instances to which to add tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceNames
The names of the on-premises instances to which to add tags.
- Parameters:
instanceNames
- The names of the on-premises instances to which to add tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
AddTagsToOnPremisesInstancesRequest.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
AddTagsToOnPremisesInstancesRequest.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.
-