@Generated(value="software.amazon.awssdk:codegen") public class MaintenanceWindowTarget extends Object implements StructuredPojo, ToCopyableBuilder<MaintenanceWindowTarget.Builder,MaintenanceWindowTarget>
The target registered with the Maintenance Window.
Modifier and Type | Class and Description |
---|---|
static interface |
MaintenanceWindowTarget.Builder |
Modifier and Type | Method and Description |
---|---|
static MaintenanceWindowTarget.Builder |
builder() |
String |
description()
A description of the target.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name()
The target name.
|
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.
|
String |
resourceTypeString()
The type of target.
|
static Class<? extends MaintenanceWindowTarget.Builder> |
serializableBuilderClass() |
List<Target> |
targets()
The targets (either instances or tags).
|
MaintenanceWindowTarget.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 Maintenance Window ID where the target is registered.
|
String |
windowTargetId()
The ID of the target.
|
copy
public String windowId()
The Maintenance Window ID where the target is registered.
public String windowTargetId()
The ID of the target.
public MaintenanceWindowResourceType resourceType()
The type of target.
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 resourceTypeString()
.
MaintenanceWindowResourceType
public String resourceTypeString()
The type of target.
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 resourceTypeString()
.
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()
The target name.
public String description()
A description of the target.
public MaintenanceWindowTarget.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<MaintenanceWindowTarget.Builder,MaintenanceWindowTarget>
public static MaintenanceWindowTarget.Builder builder()
public static Class<? extends MaintenanceWindowTarget.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.