@Generated(value="software.amazon.awssdk:codegen") public final class RegisterTargetWithMaintenanceWindowRequest extends SsmRequest implements ToCopyableBuilder<RegisterTargetWithMaintenanceWindowRequest.Builder,RegisterTargetWithMaintenanceWindowRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
RegisterTargetWithMaintenanceWindowRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static RegisterTargetWithMaintenanceWindowRequest.Builder |
builder() |
String |
clientToken()
User-provided idempotency token.
|
String |
description()
An optional description for the target.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
An optional name for the target.
|
String |
ownerInformation()
User-provided value that will be included in any CloudWatch events raised while running tasks for these targets
in this maintenance window.
|
MaintenanceWindowResourceType |
resourceType()
The type of target being registered with the maintenance window.
|
String |
resourceTypeAsString()
The type of target being registered with the maintenance window.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RegisterTargetWithMaintenanceWindowRequest.Builder> |
serializableBuilderClass() |
List<Target> |
targets()
The targets to register with the maintenance window.
|
RegisterTargetWithMaintenanceWindowRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
windowId()
The ID of the maintenance window the target should be registered with.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String windowId()
The ID of the maintenance window the target should be registered with.
public MaintenanceWindowResourceType resourceType()
The type of target being registered with the maintenance window.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return MaintenanceWindowResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from resourceTypeAsString().
MaintenanceWindowResourceTypepublic String resourceTypeAsString()
The type of target being registered with the maintenance window.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return MaintenanceWindowResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from resourceTypeAsString().
MaintenanceWindowResourceTypepublic List<Target> targets()
The targets to register with the maintenance window. In other words, the instances to run commands on when the maintenance window runs.
You can specify targets using either instance IDs or tags that have been applied to instances.
Example 1: Specify instance IDs
Key=InstanceIds,Values=instance-id-1,instance-id-2,instance-id-3
Example 2: Use tag key-pairs applied to instances
Key=tag:my-tag-key,Values=my-tag-value-1,my-tag-value-2
Example 3: Use tag-keys applied to instances
Key=tag-key,Values=my-tag-key-1,my-tag-key-2
For more information about these examples formats, including the best use case for each one, see Examples: Register Targets with a Maintenance Window in the AWS Systems Manager User Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can specify targets using either instance IDs or tags that have been applied to instances.
Example 1: Specify instance IDs
Key=InstanceIds,Values=instance-id-1,instance-id-2,instance-id-3
Example 2: Use tag key-pairs applied to instances
Key=tag:my-tag-key,Values=my-tag-value-1,my-tag-value-2
Example 3: Use tag-keys applied to instances
Key=tag-key,Values=my-tag-key-1,my-tag-key-2
For more information about these examples formats, including the best use case for each one, see Examples: Register Targets with a Maintenance Window in the AWS Systems Manager User Guide.
public String ownerInformation()
User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this maintenance window.
public String name()
An optional name for the target.
public String description()
An optional description for the target.
public String clientToken()
User-provided idempotency token.
public RegisterTargetWithMaintenanceWindowRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RegisterTargetWithMaintenanceWindowRequest.Builder,RegisterTargetWithMaintenanceWindowRequest>toBuilder in class SsmRequestpublic static RegisterTargetWithMaintenanceWindowRequest.Builder builder()
public static Class<? extends RegisterTargetWithMaintenanceWindowRequest.Builder> serializableBuilderClass()
public String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2019. All rights reserved.