Interface ComplianceItem.Builder

    • Method Detail

      • complianceType

        ComplianceItem.Builder complianceType​(String complianceType)

        The compliance type. For example, Association (for a State Manager association), Patch, or Custom: string are all valid compliance types.

        Parameters:
        complianceType - The compliance type. For example, Association (for a State Manager association), Patch, or Custom: string are all valid compliance types.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceType

        ComplianceItem.Builder resourceType​(String resourceType)

        The type of resource. ManagedInstance is currently the only supported resource type.

        Parameters:
        resourceType - The type of resource. ManagedInstance is currently the only supported resource type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceId

        ComplianceItem.Builder resourceId​(String resourceId)

        An ID for the resource. For a managed node, this is the node ID.

        Parameters:
        resourceId - An ID for the resource. For a managed node, this is the node ID.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • 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; for example: KB4010320.

        Parameters:
        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; for example: KB4010320.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • title

        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; for example: Security Update for Active Directory Federation Services.

        Parameters:
        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; for example: Security Update for Active Directory Federation Services.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        ComplianceItem.Builder status​(String status)

        The status of the compliance item. An item is either COMPLIANT, NON_COMPLIANT, or an empty string (for Windows patches that aren't applicable).

        Parameters:
        status - The status of the compliance item. An item is either COMPLIANT, NON_COMPLIANT, or an empty string (for Windows patches that aren't applicable).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ComplianceStatus, ComplianceStatus
      • status

        ComplianceItem.Builder status​(ComplianceStatus status)

        The status of the compliance item. An item is either COMPLIANT, NON_COMPLIANT, or an empty string (for Windows patches that aren't applicable).

        Parameters:
        status - The status of the compliance item. An item is either COMPLIANT, NON_COMPLIANT, or an empty string (for Windows patches that aren't applicable).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ComplianceStatus, ComplianceStatus
      • severity

        ComplianceItem.Builder severity​(String severity)

        The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, Informational, Unspecified.

        Parameters:
        severity - The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, Informational, Unspecified.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ComplianceSeverity, ComplianceSeverity
      • severity

        ComplianceItem.Builder severity​(ComplianceSeverity severity)

        The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, Informational, Unspecified.

        Parameters:
        severity - The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, Informational, Unspecified.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ComplianceSeverity, ComplianceSeverity
      • executionSummary

        ComplianceItem.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.

        Parameters:
        executionSummary - A summary for the compliance item. The summary includes an execution ID, the execution type (for example, command), and the execution time.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • details

        ComplianceItem.Builder details​(Map<String,​String> details)

        A "Key": "Value" tag combination for the compliance item.

        Parameters:
        details - A "Key": "Value" tag combination for the compliance item.
        Returns:
        Returns a reference to this object so that method calls can be chained together.