@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)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
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.
|
static Class<? extends RegisterTargetWithMaintenanceWindowRequest.Builder> |
serializableBuilderClass() |
List<Target> |
targets()
The targets (either instances or tags).
|
RegisterTargetWithMaintenanceWindowRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
windowId()
The ID of the Maintenance Window the target should be registered with.
|
overrideConfiguration
copy
public 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()
.
MaintenanceWindowResourceType
public 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()
.
MaintenanceWindowResourceType
public List<Target> targets()
The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
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()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<RegisterTargetWithMaintenanceWindowRequest.Builder,RegisterTargetWithMaintenanceWindowRequest>
toBuilder
in class SsmRequest
public static RegisterTargetWithMaintenanceWindowRequest.Builder builder()
public static Class<? extends RegisterTargetWithMaintenanceWindowRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.