Class DescribeSnapshotsRequest

    • Constructor Detail

      • DescribeSnapshotsRequest

        public DescribeSnapshotsRequest()
    • Method Detail

      • setDirectoryId

        public void setDirectoryId​(String directoryId)

        The identifier of the directory for which to retrieve snapshot information.

        Parameters:
        directoryId - The identifier of the directory for which to retrieve snapshot information.
      • getDirectoryId

        public String getDirectoryId()

        The identifier of the directory for which to retrieve snapshot information.

        Returns:
        The identifier of the directory for which to retrieve snapshot information.
      • withDirectoryId

        public DescribeSnapshotsRequest withDirectoryId​(String directoryId)

        The identifier of the directory for which to retrieve snapshot information.

        Parameters:
        directoryId - The identifier of the directory for which to retrieve snapshot information.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getSnapshotIds

        public List<String> getSnapshotIds()

        A list of identifiers of the snapshots to obtain the information for. If this member is null or empty, all snapshots are returned using the Limit and NextToken members.

        Returns:
        A list of identifiers of the snapshots to obtain the information for. If this member is null or empty, all snapshots are returned using the Limit and NextToken members.
      • setSnapshotIds

        public void setSnapshotIds​(Collection<String> snapshotIds)

        A list of identifiers of the snapshots to obtain the information for. If this member is null or empty, all snapshots are returned using the Limit and NextToken members.

        Parameters:
        snapshotIds - A list of identifiers of the snapshots to obtain the information for. If this member is null or empty, all snapshots are returned using the Limit and NextToken members.
      • withSnapshotIds

        public DescribeSnapshotsRequest withSnapshotIds​(String... snapshotIds)

        A list of identifiers of the snapshots to obtain the information for. If this member is null or empty, all snapshots are returned using the Limit and NextToken members.

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

        Parameters:
        snapshotIds - A list of identifiers of the snapshots to obtain the information for. If this member is null or empty, all snapshots are returned using the Limit and NextToken members.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withSnapshotIds

        public DescribeSnapshotsRequest withSnapshotIds​(Collection<String> snapshotIds)

        A list of identifiers of the snapshots to obtain the information for. If this member is null or empty, all snapshots are returned using the Limit and NextToken members.

        Parameters:
        snapshotIds - A list of identifiers of the snapshots to obtain the information for. If this member is null or empty, all snapshots are returned using the Limit and NextToken members.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setNextToken

        public void setNextToken​(String nextToken)

        The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass null if this is the first call.

        Parameters:
        nextToken - The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass null if this is the first call.
      • getNextToken

        public String getNextToken()

        The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass null if this is the first call.

        Returns:
        The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass null if this is the first call.
      • withNextToken

        public DescribeSnapshotsRequest withNextToken​(String nextToken)

        The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass null if this is the first call.

        Parameters:
        nextToken - The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass null if this is the first call.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setLimit

        public void setLimit​(Integer limit)

        The maximum number of objects to return.

        Parameters:
        limit - The maximum number of objects to return.
      • getLimit

        public Integer getLimit()

        The maximum number of objects to return.

        Returns:
        The maximum number of objects to return.
      • withLimit

        public DescribeSnapshotsRequest withLimit​(Integer limit)

        The maximum number of objects to return.

        Parameters:
        limit - The maximum number of objects to return.
        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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object