Interface WorkspaceEnforcedPolicyAssociation.Builder

  • Method Details

    • policyId

      The identifier of the policy.

      Parameters:
      policyId - The identifier of the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • syncStatus

      Whether the policy is applied:

      • PENDING_UPDATE – The WorkSpace hasn't confirmed the policy yet.

      • IN_SYNC – The policy is applied.

      • FAILED – The policy isn't applied.

      This field isn't returned if the service can't determine the status. Don't treat a missing value as IN_SYNC.

      Parameters:
      syncStatus - Whether the policy is applied:

      • PENDING_UPDATE – The WorkSpace hasn't confirmed the policy yet.

      • IN_SYNC – The policy is applied.

      • FAILED – The policy isn't applied.

      This field isn't returned if the service can't determine the status. Don't treat a missing value as IN_SYNC.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • syncStatus

      Whether the policy is applied:

      • PENDING_UPDATE – The WorkSpace hasn't confirmed the policy yet.

      • IN_SYNC – The policy is applied.

      • FAILED – The policy isn't applied.

      This field isn't returned if the service can't determine the status. Don't treat a missing value as IN_SYNC.

      Parameters:
      syncStatus - Whether the policy is applied:

      • PENDING_UPDATE – The WorkSpace hasn't confirmed the policy yet.

      • IN_SYNC – The policy is applied.

      • FAILED – The policy isn't applied.

      This field isn't returned if the service can't determine the status. Don't treat a missing value as IN_SYNC.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • errorCode

      The reason that the policy wasn't applied. This field is returned only when SyncStatus is FAILED because of this policy. If SyncStatus is FAILED and this field isn't returned, the failure has another cause.

      Parameters:
      errorCode - The reason that the policy wasn't applied. This field is returned only when SyncStatus is FAILED because of this policy. If SyncStatus is FAILED and this field isn't returned, the failure has another cause.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • errorCode

      The reason that the policy wasn't applied. This field is returned only when SyncStatus is FAILED because of this policy. If SyncStatus is FAILED and this field isn't returned, the failure has another cause.

      Parameters:
      errorCode - The reason that the policy wasn't applied. This field is returned only when SyncStatus is FAILED because of this policy. If SyncStatus is FAILED and this field isn't returned, the failure has another cause.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • errorMessage

      A description of why the policy wasn't applied to the WorkSpace. This field is usually returned when ErrorCode is returned.

      Parameters:
      errorMessage - A description of why the policy wasn't applied to the WorkSpace. This field is usually returned when ErrorCode is returned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.