@Generated(value="software.amazon.awssdk:codegen") public class AddTagsToResourceRequest extends SSMRequest implements software.amazon.awssdk.utils.builder.ToCopyableBuilder<AddTagsToResourceRequest.Builder,AddTagsToResourceRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
AddTagsToResourceRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AddTagsToResourceRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
resourceId()
The resource ID you want to tag.
|
ResourceTypeForTagging |
resourceType()
Specifies the type of resource you are tagging.
|
String |
resourceTypeString()
Specifies the type of resource you are tagging.
|
static Class<? extends AddTagsToResourceRequest.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
One or more tags.
|
AddTagsToResourceRequest.Builder |
toBuilder() |
String |
toString() |
requestOverrideConfigpublic ResourceTypeForTagging resourceType()
Specifies the type of resource you are tagging.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceTypeForTagging.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from resourceTypeString().
ResourceTypeForTaggingpublic String resourceTypeString()
Specifies the type of resource you are tagging.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceTypeForTagging.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from resourceTypeString().
ResourceTypeForTaggingpublic String resourceId()
The resource ID you want to tag.
For the ManagedInstance, MaintenanceWindow, and PatchBaseline values, use the ID of the resource, such as mw-01234361858c9b57b for a Maintenance Window.
For the Document and Parameter values, use the name of the resource.
For the ManagedInstance, MaintenanceWindow, and PatchBaseline values, use the ID of the resource, such as mw-01234361858c9b57b for a Maintenance Window.
For the Document and Parameter values, use the name of the resource.
public List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public AddTagsToResourceRequest.Builder toBuilder()
toBuilder in interface software.amazon.awssdk.utils.builder.ToCopyableBuilder<AddTagsToResourceRequest.Builder,AddTagsToResourceRequest>toBuilder in class SSMRequestpublic static AddTagsToResourceRequest.Builder builder()
public static Class<? extends AddTagsToResourceRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2018. All rights reserved.