Class UpdatePolicyRequest

    • Method Detail

      • policyId

        public final String policyId()

        The unique identifier (ID) of the policy that you want to update.

        The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).

        Returns:
        The unique identifier (ID) of the policy that you want to update.

        The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).

      • name

        public final String name()

        If provided, the new name for the policy.

        The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.

        Returns:
        If provided, the new name for the policy.

        The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.

      • description

        public final String description()

        If provided, the new description for the policy.

        Returns:
        If provided, the new description for the policy.
      • content

        public final String content()

        If provided, the new content for the policy. The text must be correctly formatted JSON that complies with the syntax for the policy's type. For more information, see SCP syntax in the Organizations User Guide.

        The maximum size of a policy document depends on the policy's type. For more information, see Maximum and minimum values in the Organizations User Guide.

        Returns:
        If provided, the new content for the policy. The text must be correctly formatted JSON that complies with the syntax for the policy's type. For more information, see SCP syntax in the Organizations User Guide.

        The maximum size of a policy document depends on the policy's type. For more information, see Maximum and minimum values in the Organizations User Guide.

      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object