public static interface ComplianceItem.Builder extends CopyableBuilder<ComplianceItem.Builder,ComplianceItem>
| Modifier and Type | Method and Description |
|---|---|
ComplianceItem.Builder |
complianceType(String complianceType)
The compliance type.
|
ComplianceItem.Builder |
details(Map<String,String> details)
A "Key": "Value" tag combination for the compliance item.
|
ComplianceItem.Builder |
executionSummary(ComplianceExecutionSummary executionSummary)
A summary for the compliance item.
|
default ComplianceItem.Builder |
executionSummary(Consumer<ComplianceExecutionSummary.Builder> executionSummary)
A summary for the compliance item.
|
ComplianceItem.Builder |
id(String id)
An ID for the compliance item.
|
ComplianceItem.Builder |
resourceId(String resourceId)
An ID for the resource.
|
ComplianceItem.Builder |
resourceType(String resourceType)
The type of resource.
|
ComplianceItem.Builder |
severity(ComplianceSeverity severity)
The severity of the compliance status.
|
ComplianceItem.Builder |
severity(String severity)
The severity of the compliance status.
|
ComplianceItem.Builder |
status(ComplianceStatus status)
The status of the compliance item.
|
ComplianceItem.Builder |
status(String status)
The status of the compliance item.
|
ComplianceItem.Builder |
title(String title)
A title for the compliance item.
|
copyapply, buildComplianceItem.Builder complianceType(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.ComplianceItem.Builder resourceType(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.ComplianceItem.Builder resourceId(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.ComplianceItem.Builder id(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.ComplianceItem.Builder title(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.ComplianceItem.Builder status(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,
ComplianceStatusComplianceItem.Builder status(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,
ComplianceStatusComplianceItem.Builder severity(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,
ComplianceSeverityComplianceItem.Builder severity(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,
ComplianceSeverityComplianceItem.Builder executionSummary(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.default ComplianceItem.Builder executionSummary(Consumer<ComplianceExecutionSummary.Builder> executionSummary)
A summary for the compliance item. The summary includes an execution ID, the execution type (for example, command), and the execution time.
This is a convenience that creates an instance of theComplianceExecutionSummary.Builder avoiding the
need to create one manually via ComplianceExecutionSummary.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to executionSummary(ComplianceExecutionSummary).executionSummary - a consumer that will call methods on ComplianceExecutionSummary.BuilderexecutionSummary(ComplianceExecutionSummary)ComplianceItem.Builder details(Map<String,String> details)
A "Key": "Value" tag combination for the compliance item.
details - A "Key": "Value" tag combination for the compliance item.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.