Class ListPolicyVersionsResult

java.lang.Object
com.amazonaws.services.identitymanagement.model.ListPolicyVersionsResult
All Implemented Interfaces:
Serializable, Cloneable

public class ListPolicyVersionsResult extends Object implements Serializable, Cloneable

Contains the response to a successful ListPolicyVersions request.

See Also:
  • Constructor Details

    • ListPolicyVersionsResult

      public ListPolicyVersionsResult()
  • Method Details

    • getVersions

      public List<PolicyVersion> getVersions()

      A list of policy versions.

      For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

      Returns:
      A list of policy versions.

      For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

    • setVersions

      public void setVersions(Collection<PolicyVersion> versions)

      A list of policy versions.

      For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

      Parameters:
      versions - A list of policy versions.

      For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

    • withVersions

      public ListPolicyVersionsResult withVersions(PolicyVersion... versions)

      A list of policy versions.

      For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

      NOTE: This method appends the values to the existing list (if any). Use setVersions(java.util.Collection) or withVersions(java.util.Collection) if you want to override the existing values.

      Parameters:
      versions - A list of policy versions.

      For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

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

      public ListPolicyVersionsResult withVersions(Collection<PolicyVersion> versions)

      A list of policy versions.

      For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

      Parameters:
      versions - A list of policy versions.

      For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

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

      public void setIsTruncated(Boolean isTruncated)

      A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

      Parameters:
      isTruncated - A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.
    • getIsTruncated

      public Boolean getIsTruncated()

      A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

      Returns:
      A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.
    • withIsTruncated

      public ListPolicyVersionsResult withIsTruncated(Boolean isTruncated)

      A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

      Parameters:
      isTruncated - A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isTruncated

      public Boolean isTruncated()

      A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

      Returns:
      A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.
    • setMarker

      public void setMarker(String marker)

      When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

      Parameters:
      marker - When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.
    • getMarker

      public String getMarker()

      When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

      Returns:
      When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.
    • withMarker

      public ListPolicyVersionsResult withMarker(String marker)

      When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

      Parameters:
      marker - When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ListPolicyVersionsResult clone()
      Overrides:
      clone in class Object