public static interface AddTagsToResourceRequest.Builder extends SsmRequest.Builder, SdkPojo, CopyableBuilder<AddTagsToResourceRequest.Builder,AddTagsToResourceRequest>
Modifier and Type | Method and Description |
---|---|
AddTagsToResourceRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
AddTagsToResourceRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
AddTagsToResourceRequest.Builder |
resourceId(String resourceId)
The resource ID you want to tag.
|
AddTagsToResourceRequest.Builder |
resourceType(ResourceTypeForTagging resourceType)
Specifies the type of resource you are tagging.
|
AddTagsToResourceRequest.Builder |
resourceType(String resourceType)
Specifies the type of resource you are tagging.
|
AddTagsToResourceRequest.Builder |
tags(Collection<Tag> tags)
One or more tags.
|
AddTagsToResourceRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
One or more tags.
|
AddTagsToResourceRequest.Builder |
tags(Tag... tags)
One or more tags.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
AddTagsToResourceRequest.Builder resourceType(String resourceType)
Specifies the type of resource you are tagging.
The ManagedInstance type for this API action is for on-premises managed instances. You must specify the name of the managed instance in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.
resourceType
- Specifies the type of resource you are tagging. The ManagedInstance type for this API action is for on-premises managed instances. You must specify the name of the managed instance in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.
ResourceTypeForTagging
,
ResourceTypeForTagging
AddTagsToResourceRequest.Builder resourceType(ResourceTypeForTagging resourceType)
Specifies the type of resource you are tagging.
The ManagedInstance type for this API action is for on-premises managed instances. You must specify the name of the managed instance in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.
resourceType
- Specifies the type of resource you are tagging. The ManagedInstance type for this API action is for on-premises managed instances. You must specify the name of the managed instance in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.
ResourceTypeForTagging
,
ResourceTypeForTagging
AddTagsToResourceRequest.Builder resourceId(String resourceId)
The resource ID you want to tag.
Use the ID of the resource. Here are some examples:
ManagedInstance: mi-012345abcde
MaintenanceWindow: mw-012345abcde
PatchBaseline: pb-012345abcde
For the Document and Parameter values, use the name of the resource.
The ManagedInstance type for this API action is only for on-premises managed instances. You must specify the name of the managed instance in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.
resourceId
- The resource ID you want to tag.
Use the ID of the resource. Here are some examples:
ManagedInstance: mi-012345abcde
MaintenanceWindow: mw-012345abcde
PatchBaseline: pb-012345abcde
For the Document and Parameter values, use the name of the resource.
The ManagedInstance type for this API action is only for on-premises managed instances. You must specify the name of the managed instance in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.
AddTagsToResourceRequest.Builder tags(Collection<Tag> tags)
One or more tags. The value parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.
Do not enter personally identifiable information in this field.
tags
- One or more tags. The value parameter is required, but if you don't want the tag to have a value,
specify the parameter with no value, and we set the value to an empty string. Do not enter personally identifiable information in this field.
AddTagsToResourceRequest.Builder tags(Tag... tags)
One or more tags. The value parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.
Do not enter personally identifiable information in this field.
tags
- One or more tags. The value parameter is required, but if you don't want the tag to have a value,
specify the parameter with no value, and we set the value to an empty string. Do not enter personally identifiable information in this field.
AddTagsToResourceRequest.Builder tags(Consumer<Tag.Builder>... tags)
One or more tags. The value parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.
Do not enter personally identifiable information in this field.
List.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
AddTagsToResourceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.AddTagsToResourceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.