@Generated(value="software.amazon.awssdk:codegen") public final class InstancePatchState extends Object implements StructuredPojo, ToCopyableBuilder<InstancePatchState.Builder,InstancePatchState>
Defines the high-level patch compliance state for a managed instance, providing information about the number of installed, missing, not applicable, and failed patches along with metadata about the operation when this information was gathered for the instance.
Modifier and Type | Class and Description |
---|---|
static interface |
InstancePatchState.Builder |
Modifier and Type | Method and Description |
---|---|
String |
baselineId()
The ID of the patch baseline used to patch the instance.
|
static InstancePatchState.Builder |
builder() |
boolean |
equals(Object obj) |
Integer |
failedCount()
The number of patches from the patch baseline that were attempted to be installed during the last patching
operation, but failed to install.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
installedCount()
The number of patches from the patch baseline that are installed on the instance.
|
Integer |
installedOtherCount()
The number of patches not specified in the patch baseline that are installed on the instance.
|
String |
instanceId()
The ID of the managed instance the high-level patch compliance information was collected for.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
Integer |
missingCount()
The number of patches from the patch baseline that are applicable for the instance but aren't currently
installed.
|
Integer |
notApplicableCount()
The number of patches from the patch baseline that aren't applicable for the instance and hence aren't installed
on the instance.
|
PatchOperationType |
operation()
The type of patching operation that was performed: SCAN (assess patch compliance state) or INSTALL (install
missing patches).
|
String |
operationAsString()
The type of patching operation that was performed: SCAN (assess patch compliance state) or INSTALL (install
missing patches).
|
Instant |
operationEndTime()
The time the most recent patching operation completed on the instance.
|
Instant |
operationStartTime()
The time the most recent patching operation was started on the instance.
|
String |
ownerInformation()
Placeholder information, this field will always be empty in the current release of the service.
|
String |
patchGroup()
The name of the patch group the managed instance belongs to.
|
static Class<? extends InstancePatchState.Builder> |
serializableBuilderClass() |
String |
snapshotId()
The ID of the patch baseline snapshot used during the patching operation when this compliance data was collected.
|
InstancePatchState.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String instanceId()
The ID of the managed instance the high-level patch compliance information was collected for.
public String patchGroup()
The name of the patch group the managed instance belongs to.
public String baselineId()
The ID of the patch baseline used to patch the instance.
public String snapshotId()
The ID of the patch baseline snapshot used during the patching operation when this compliance data was collected.
public String ownerInformation()
Placeholder information, this field will always be empty in the current release of the service.
public Integer installedCount()
The number of patches from the patch baseline that are installed on the instance.
public Integer installedOtherCount()
The number of patches not specified in the patch baseline that are installed on the instance.
public Integer missingCount()
The number of patches from the patch baseline that are applicable for the instance but aren't currently installed.
public Integer failedCount()
The number of patches from the patch baseline that were attempted to be installed during the last patching operation, but failed to install.
public Integer notApplicableCount()
The number of patches from the patch baseline that aren't applicable for the instance and hence aren't installed on the instance.
public Instant operationStartTime()
The time the most recent patching operation was started on the instance.
public Instant operationEndTime()
The time the most recent patching operation completed on the instance.
public PatchOperationType operation()
The type of patching operation that was performed: SCAN (assess patch compliance state) or INSTALL (install missing patches).
If the service returns an enum value that is not available in the current SDK version, operation
will
return PatchOperationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
operationAsString()
.
PatchOperationType
public String operationAsString()
The type of patching operation that was performed: SCAN (assess patch compliance state) or INSTALL (install missing patches).
If the service returns an enum value that is not available in the current SDK version, operation
will
return PatchOperationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
operationAsString()
.
PatchOperationType
public InstancePatchState.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<InstancePatchState.Builder,InstancePatchState>
public static InstancePatchState.Builder builder()
public static Class<? extends InstancePatchState.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.