@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ComplianceItem extends Object implements Serializable, Cloneable, StructuredPojo
Information about the compliance as defined by the resource type. For example, for a patch resource type,
Items
includes information about the PatchSeverity, Classification, etc.
Constructor and Description |
---|
ComplianceItem() |
Modifier and Type | Method and Description |
---|---|
ComplianceItem |
addDetailsEntry(String key,
String value) |
ComplianceItem |
clearDetailsEntries()
Removes all the entries added into Details.
|
ComplianceItem |
clone() |
boolean |
equals(Object obj) |
String |
getComplianceType()
The compliance type.
|
Map<String,String> |
getDetails()
A "Key": "Value" tag combination for the compliance item.
|
ComplianceExecutionSummary |
getExecutionSummary()
A summary for the compliance item.
|
String |
getId()
An ID for the compliance item.
|
String |
getResourceId()
An ID for the resource.
|
String |
getResourceType()
The type of resource.
|
String |
getSeverity()
The severity of the compliance status.
|
String |
getStatus()
The status of the compliance item.
|
String |
getTitle()
A title for the compliance item.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComplianceType(String complianceType)
The compliance type.
|
void |
setDetails(Map<String,String> details)
A "Key": "Value" tag combination for the compliance item.
|
void |
setExecutionSummary(ComplianceExecutionSummary executionSummary)
A summary for the compliance item.
|
void |
setId(String id)
An ID for the compliance item.
|
void |
setResourceId(String resourceId)
An ID for the resource.
|
void |
setResourceType(String resourceType)
The type of resource.
|
void |
setSeverity(String severity)
The severity of the compliance status.
|
void |
setStatus(String status)
The status of the compliance item.
|
void |
setTitle(String title)
A title for the compliance item.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ComplianceItem |
withComplianceType(String complianceType)
The compliance type.
|
ComplianceItem |
withDetails(Map<String,String> details)
A "Key": "Value" tag combination for the compliance item.
|
ComplianceItem |
withExecutionSummary(ComplianceExecutionSummary executionSummary)
A summary for the compliance item.
|
ComplianceItem |
withId(String id)
An ID for the compliance item.
|
ComplianceItem |
withResourceId(String resourceId)
An ID for the resource.
|
ComplianceItem |
withResourceType(String resourceType)
The type of resource.
|
ComplianceItem |
withSeverity(ComplianceSeverity severity)
The severity of the compliance status.
|
ComplianceItem |
withSeverity(String severity)
The severity of the compliance status.
|
ComplianceItem |
withStatus(ComplianceStatus status)
The status of the compliance item.
|
ComplianceItem |
withStatus(String status)
The status of the compliance item.
|
ComplianceItem |
withTitle(String title)
A title for the compliance item.
|
public void setComplianceType(String complianceType)
The compliance type. For example, Association (for a State Manager association), Patch, or Custom:
string
are all valid compliance types.
complianceType
- The compliance type. For example, Association (for a State Manager association), Patch, or Custom:
string
are all valid compliance types.public String getComplianceType()
The compliance type. For example, Association (for a State Manager association), Patch, or Custom:
string
are all valid compliance types.
string
are all valid compliance types.public ComplianceItem withComplianceType(String complianceType)
The compliance type. For example, Association (for a State Manager association), Patch, or Custom:
string
are all valid compliance types.
complianceType
- The compliance type. For example, Association (for a State Manager association), Patch, or Custom:
string
are all valid compliance types.public void setResourceType(String resourceType)
The type of resource. ManagedInstance
is currently the only supported resource type.
resourceType
- The type of resource. ManagedInstance
is currently the only supported resource type.public String getResourceType()
The type of resource. ManagedInstance
is currently the only supported resource type.
ManagedInstance
is currently the only supported resource type.public ComplianceItem withResourceType(String resourceType)
The type of resource. ManagedInstance
is currently the only supported resource type.
resourceType
- The type of resource. ManagedInstance
is currently the only supported resource type.public void setResourceId(String resourceId)
An ID for the resource. For a managed instance, this is the instance ID.
resourceId
- An ID for the resource. For a managed instance, this is the instance ID.public String getResourceId()
An ID for the resource. For a managed instance, this is the instance ID.
public ComplianceItem withResourceId(String resourceId)
An ID for the resource. For a managed instance, this is the instance ID.
resourceId
- An ID for the resource. For a managed instance, this is the instance ID.public void setId(String id)
An ID for the compliance item. For example, if the compliance item is a Windows patch, the ID could be the number of the KB article. Here's an example: KB4010320.
id
- An ID for the compliance item. For example, if the compliance item is a Windows patch, the ID could be the
number of the KB article. Here's an example: KB4010320.public String getId()
An ID for the compliance item. For example, if the compliance item is a Windows patch, the ID could be the number of the KB article. Here's an example: KB4010320.
public ComplianceItem withId(String id)
An ID for the compliance item. For example, if the compliance item is a Windows patch, the ID could be the number of the KB article. Here's an example: KB4010320.
id
- An ID for the compliance item. For example, if the compliance item is a Windows patch, the ID could be the
number of the KB article. Here's an example: KB4010320.public void setTitle(String title)
A title for the compliance item. For example, if the compliance item is a Windows patch, the title could be the title of the KB article for the patch. Here's an example: Security Update for Active Directory Federation Services.
title
- A title for the compliance item. For example, if the compliance item is a Windows patch, the title could
be the title of the KB article for the patch. Here's an example: Security Update for Active Directory
Federation Services.public String getTitle()
A title for the compliance item. For example, if the compliance item is a Windows patch, the title could be the title of the KB article for the patch. Here's an example: Security Update for Active Directory Federation Services.
public ComplianceItem withTitle(String title)
A title for the compliance item. For example, if the compliance item is a Windows patch, the title could be the title of the KB article for the patch. Here's an example: Security Update for Active Directory Federation Services.
title
- A title for the compliance item. For example, if the compliance item is a Windows patch, the title could
be the title of the KB article for the patch. Here's an example: Security Update for Active Directory
Federation Services.public void setStatus(String status)
The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT.
status
- The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT.ComplianceStatus
public String getStatus()
The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT.
ComplianceStatus
public ComplianceItem withStatus(String status)
The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT.
status
- The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT.ComplianceStatus
public ComplianceItem withStatus(ComplianceStatus status)
The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT.
status
- The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT.ComplianceStatus
public void setSeverity(String severity)
The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, Informational, Unspecified.
severity
- The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low,
Informational, Unspecified.ComplianceSeverity
public String getSeverity()
The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, Informational, Unspecified.
ComplianceSeverity
public ComplianceItem withSeverity(String severity)
The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, Informational, Unspecified.
severity
- The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low,
Informational, Unspecified.ComplianceSeverity
public ComplianceItem withSeverity(ComplianceSeverity severity)
The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, Informational, Unspecified.
severity
- The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low,
Informational, Unspecified.ComplianceSeverity
public void setExecutionSummary(ComplianceExecutionSummary executionSummary)
A summary for the compliance item. The summary includes an execution ID, the execution type (for example, command), and the execution time.
executionSummary
- A summary for the compliance item. The summary includes an execution ID, the execution type (for example,
command), and the execution time.public ComplianceExecutionSummary getExecutionSummary()
A summary for the compliance item. The summary includes an execution ID, the execution type (for example, command), and the execution time.
public ComplianceItem withExecutionSummary(ComplianceExecutionSummary executionSummary)
A summary for the compliance item. The summary includes an execution ID, the execution type (for example, command), and the execution time.
executionSummary
- A summary for the compliance item. The summary includes an execution ID, the execution type (for example,
command), and the execution time.public Map<String,String> getDetails()
A "Key": "Value" tag combination for the compliance item.
public void setDetails(Map<String,String> details)
A "Key": "Value" tag combination for the compliance item.
details
- A "Key": "Value" tag combination for the compliance item.public ComplianceItem withDetails(Map<String,String> details)
A "Key": "Value" tag combination for the compliance item.
details
- A "Key": "Value" tag combination for the compliance item.public ComplianceItem addDetailsEntry(String key, String value)
public ComplianceItem clearDetailsEntries()
public String toString()
toString
in class Object
Object.toString()
public ComplianceItem clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.