Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License").
   * You may not use this file except in compliance with the License.
   * A copy of the License is located at
   *
   *  http://aws.amazon.com/apache2.0
   *
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
 
 package com.amazonaws.services.codedeploy.model;
 

Represents the input of a list application revisions operation.

 
         implements SerializableCloneable {

    

The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

 
     private String applicationName;
    

The column name to sort the list results by:

  • registerTime: Sort the list results by when the revisions were registered with AWS CodeDeploy.
  • firstUsedTime: Sort the list results by when the revisions were first used by in a deployment.
  • lastUsedTime: Sort the list results by when the revisions were last used in a deployment.

If not specified or set to null, the results will be returned in an arbitrary order.

 
     private String sortBy;
    

The order to sort the list results by:

  • ascending: Sort the list of results in ascending order.
  • descending: Sort the list of results in descending order.

If not specified, the results will be sorted in ascending order.

If set to null, the results will be sorted in an arbitrary order.

 
     private String sortOrder;
    

A specific Amazon S3 bucket name to limit the search for revisions.

If set to null, then all of the user's buckets will be searched.

 
     private String s3Bucket;
    

A specific key prefix for the set of Amazon S3 objects to limit the search for revisions.

 
     private String s3KeyPrefix;
    

Whether to list revisions based on whether the revision is the target revision of an deployment group:

  • include: List revisions that are target revisions of a deployment group.
  • exclude: Do not list revisions that are target revisions of a deployment group.
  • ignore: List all revisions, regardless of whether they are target revisions of a deployment group.
 
    private String deployed;
    

An identifier that was returned from the previous list application revisions call, which can be used to return the next set of applications in the list.

    private String nextToken;

    

The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

Parameters:
applicationName The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.
    public void setApplicationName(String applicationName) {
        this. = applicationName;
    }

    

The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

Returns:
The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.
    public String getApplicationName() {
        return this.;
    }

    

The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

Parameters:
applicationName The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.
Returns:
Returns a reference to this object so that method calls can be chained together.
            String applicationName) {
        setApplicationName(applicationName);
        return this;
    }

    

The column name to sort the list results by:

  • registerTime: Sort the list results by when the revisions were registered with AWS CodeDeploy.
  • firstUsedTime: Sort the list results by when the revisions were first used by in a deployment.
  • lastUsedTime: Sort the list results by when the revisions were last used in a deployment.

If not specified or set to null, the results will be returned in an arbitrary order.

Parameters:
sortBy The column name to sort the list results by:
  • registerTime: Sort the list results by when the revisions were registered with AWS CodeDeploy.
  • firstUsedTime: Sort the list results by when the revisions were first used by in a deployment.
  • lastUsedTime: Sort the list results by when the revisions were last used in a deployment.

If not specified or set to null, the results will be returned in an arbitrary order.

See also:
ApplicationRevisionSortBy
    public void setSortBy(String sortBy) {
        this. = sortBy;
    }

    

The column name to sort the list results by:

  • registerTime: Sort the list results by when the revisions were registered with AWS CodeDeploy.
  • firstUsedTime: Sort the list results by when the revisions were first used by in a deployment.
  • lastUsedTime: Sort the list results by when the revisions were last used in a deployment.

If not specified or set to null, the results will be returned in an arbitrary order.

Returns:
The column name to sort the list results by:
  • registerTime: Sort the list results by when the revisions were registered with AWS CodeDeploy.
  • firstUsedTime: Sort the list results by when the revisions were first used by in a deployment.
  • lastUsedTime: Sort the list results by when the revisions were last used in a deployment.

If not specified or set to null, the results will be returned in an arbitrary order.

See also:
ApplicationRevisionSortBy
    public String getSortBy() {
        return this.;
    }

    

The column name to sort the list results by:

  • registerTime: Sort the list results by when the revisions were registered with AWS CodeDeploy.
  • firstUsedTime: Sort the list results by when the revisions were first used by in a deployment.
  • lastUsedTime: Sort the list results by when the revisions were last used in a deployment.

If not specified or set to null, the results will be returned in an arbitrary order.

Parameters:
sortBy The column name to sort the list results by:
  • registerTime: Sort the list results by when the revisions were registered with AWS CodeDeploy.
  • firstUsedTime: Sort the list results by when the revisions were first used by in a deployment.
  • lastUsedTime: Sort the list results by when the revisions were last used in a deployment.

If not specified or set to null, the results will be returned in an arbitrary order.

Returns:
Returns a reference to this object so that method calls can be chained together.
See also:
ApplicationRevisionSortBy
        setSortBy(sortBy);
        return this;
    }

    

The column name to sort the list results by:

  • registerTime: Sort the list results by when the revisions were registered with AWS CodeDeploy.
  • firstUsedTime: Sort the list results by when the revisions were first used by in a deployment.
  • lastUsedTime: Sort the list results by when the revisions were last used in a deployment.

If not specified or set to null, the results will be returned in an arbitrary order.

Parameters:
sortBy The column name to sort the list results by:
  • registerTime: Sort the list results by when the revisions were registered with AWS CodeDeploy.
  • firstUsedTime: Sort the list results by when the revisions were first used by in a deployment.
  • lastUsedTime: Sort the list results by when the revisions were last used in a deployment.

If not specified or set to null, the results will be returned in an arbitrary order.

Returns:
Returns a reference to this object so that method calls can be chained together.
See also:
ApplicationRevisionSortBy
    public void setSortBy(ApplicationRevisionSortBy sortBy) {
        this. = sortBy.toString();
    }

    

The column name to sort the list results by:

  • registerTime: Sort the list results by when the revisions were registered with AWS CodeDeploy.
  • firstUsedTime: Sort the list results by when the revisions were first used by in a deployment.
  • lastUsedTime: Sort the list results by when the revisions were last used in a deployment.

If not specified or set to null, the results will be returned in an arbitrary order.

Parameters:
sortBy The column name to sort the list results by:
  • registerTime: Sort the list results by when the revisions were registered with AWS CodeDeploy.
  • firstUsedTime: Sort the list results by when the revisions were first used by in a deployment.
  • lastUsedTime: Sort the list results by when the revisions were last used in a deployment.

If not specified or set to null, the results will be returned in an arbitrary order.

Returns:
Returns a reference to this object so that method calls can be chained together.
See also:
ApplicationRevisionSortBy
            ApplicationRevisionSortBy sortBy) {
        setSortBy(sortBy);
        return this;
    }

    

The order to sort the list results by:

  • ascending: Sort the list of results in ascending order.
  • descending: Sort the list of results in descending order.

If not specified, the results will be sorted in ascending order.

If set to null, the results will be sorted in an arbitrary order.

Parameters:
sortOrder The order to sort the list results by:
  • ascending: Sort the list of results in ascending order.
  • descending: Sort the list of results in descending order.

If not specified, the results will be sorted in ascending order.

If set to null, the results will be sorted in an arbitrary order.

See also:
SortOrder
    public void setSortOrder(String sortOrder) {
        this. = sortOrder;
    }

    

The order to sort the list results by:

  • ascending: Sort the list of results in ascending order.
  • descending: Sort the list of results in descending order.

If not specified, the results will be sorted in ascending order.

If set to null, the results will be sorted in an arbitrary order.

Returns:
The order to sort the list results by:
  • ascending: Sort the list of results in ascending order.
  • descending: Sort the list of results in descending order.

If not specified, the results will be sorted in ascending order.

If set to null, the results will be sorted in an arbitrary order.

See also:
SortOrder
    public String getSortOrder() {
        return this.;
    }

    

The order to sort the list results by:

  • ascending: Sort the list of results in ascending order.
  • descending: Sort the list of results in descending order.

If not specified, the results will be sorted in ascending order.

If set to null, the results will be sorted in an arbitrary order.

Parameters:
sortOrder The order to sort the list results by:
  • ascending: Sort the list of results in ascending order.
  • descending: Sort the list of results in descending order.

If not specified, the results will be sorted in ascending order.

If set to null, the results will be sorted in an arbitrary order.

Returns:
Returns a reference to this object so that method calls can be chained together.
See also:
SortOrder
        setSortOrder(sortOrder);
        return this;
    }

    

The order to sort the list results by:

  • ascending: Sort the list of results in ascending order.
  • descending: Sort the list of results in descending order.

If not specified, the results will be sorted in ascending order.

If set to null, the results will be sorted in an arbitrary order.

Parameters:
sortOrder The order to sort the list results by:
  • ascending: Sort the list of results in ascending order.
  • descending: Sort the list of results in descending order.

If not specified, the results will be sorted in ascending order.

If set to null, the results will be sorted in an arbitrary order.

Returns:
Returns a reference to this object so that method calls can be chained together.
See also:
SortOrder
    public void setSortOrder(SortOrder sortOrder) {
        this. = sortOrder.toString();
    }

    

The order to sort the list results by:

  • ascending: Sort the list of results in ascending order.
  • descending: Sort the list of results in descending order.

If not specified, the results will be sorted in ascending order.

If set to null, the results will be sorted in an arbitrary order.

Parameters:
sortOrder The order to sort the list results by:
  • ascending: Sort the list of results in ascending order.
  • descending: Sort the list of results in descending order.

If not specified, the results will be sorted in ascending order.

If set to null, the results will be sorted in an arbitrary order.

Returns:
Returns a reference to this object so that method calls can be chained together.
See also:
SortOrder
        setSortOrder(sortOrder);
        return this;
    }

    

A specific Amazon S3 bucket name to limit the search for revisions.

If set to null, then all of the user's buckets will be searched.

Parameters:
s3Bucket A specific Amazon S3 bucket name to limit the search for revisions.

If set to null, then all of the user's buckets will be searched.

    public void setS3Bucket(String s3Bucket) {
        this. = s3Bucket;
    }

    

A specific Amazon S3 bucket name to limit the search for revisions.

If set to null, then all of the user's buckets will be searched.

Returns:
A specific Amazon S3 bucket name to limit the search for revisions.

If set to null, then all of the user's buckets will be searched.

    public String getS3Bucket() {
        return this.;
    }

    

A specific Amazon S3 bucket name to limit the search for revisions.

If set to null, then all of the user's buckets will be searched.

Parameters:
s3Bucket A specific Amazon S3 bucket name to limit the search for revisions.

If set to null, then all of the user's buckets will be searched.

Returns:
Returns a reference to this object so that method calls can be chained together.
        setS3Bucket(s3Bucket);
        return this;
    }

    

A specific key prefix for the set of Amazon S3 objects to limit the search for revisions.

Parameters:
s3KeyPrefix A specific key prefix for the set of Amazon S3 objects to limit the search for revisions.
    public void setS3KeyPrefix(String s3KeyPrefix) {
        this. = s3KeyPrefix;
    }

    

A specific key prefix for the set of Amazon S3 objects to limit the search for revisions.

Returns:
A specific key prefix for the set of Amazon S3 objects to limit the search for revisions.
    public String getS3KeyPrefix() {
        return this.;
    }

    

A specific key prefix for the set of Amazon S3 objects to limit the search for revisions.

Parameters:
s3KeyPrefix A specific key prefix for the set of Amazon S3 objects to limit the search for revisions.
Returns:
Returns a reference to this object so that method calls can be chained together.
        setS3KeyPrefix(s3KeyPrefix);
        return this;
    }

    

Whether to list revisions based on whether the revision is the target revision of an deployment group:

  • include: List revisions that are target revisions of a deployment group.
  • exclude: Do not list revisions that are target revisions of a deployment group.
  • ignore: List all revisions, regardless of whether they are target revisions of a deployment group.

Parameters:
deployed Whether to list revisions based on whether the revision is the target revision of an deployment group:
  • include: List revisions that are target revisions of a deployment group.
  • exclude: Do not list revisions that are target revisions of a deployment group.
  • ignore: List all revisions, regardless of whether they are target revisions of a deployment group.
See also:
ListStateFilterAction
    public void setDeployed(String deployed) {
        this. = deployed;
    }

    

Whether to list revisions based on whether the revision is the target revision of an deployment group:

  • include: List revisions that are target revisions of a deployment group.
  • exclude: Do not list revisions that are target revisions of a deployment group.
  • ignore: List all revisions, regardless of whether they are target revisions of a deployment group.

Returns:
Whether to list revisions based on whether the revision is the target revision of an deployment group:
  • include: List revisions that are target revisions of a deployment group.
  • exclude: Do not list revisions that are target revisions of a deployment group.
  • ignore: List all revisions, regardless of whether they are target revisions of a deployment group.
See also:
ListStateFilterAction
    public String getDeployed() {
        return this.;
    }

    

Whether to list revisions based on whether the revision is the target revision of an deployment group:

  • include: List revisions that are target revisions of a deployment group.
  • exclude: Do not list revisions that are target revisions of a deployment group.
  • ignore: List all revisions, regardless of whether they are target revisions of a deployment group.

Parameters:
deployed Whether to list revisions based on whether the revision is the target revision of an deployment group:
  • include: List revisions that are target revisions of a deployment group.
  • exclude: Do not list revisions that are target revisions of a deployment group.
  • ignore: List all revisions, regardless of whether they are target revisions of a deployment group.
Returns:
Returns a reference to this object so that method calls can be chained together.
See also:
ListStateFilterAction
        setDeployed(deployed);
        return this;
    }

    

Whether to list revisions based on whether the revision is the target revision of an deployment group:

  • include: List revisions that are target revisions of a deployment group.
  • exclude: Do not list revisions that are target revisions of a deployment group.
  • ignore: List all revisions, regardless of whether they are target revisions of a deployment group.

Parameters:
deployed Whether to list revisions based on whether the revision is the target revision of an deployment group:
  • include: List revisions that are target revisions of a deployment group.
  • exclude: Do not list revisions that are target revisions of a deployment group.
  • ignore: List all revisions, regardless of whether they are target revisions of a deployment group.
Returns:
Returns a reference to this object so that method calls can be chained together.
See also:
ListStateFilterAction
    public void setDeployed(ListStateFilterAction deployed) {
        this. = deployed.toString();
    }

    

Whether to list revisions based on whether the revision is the target revision of an deployment group:

  • include: List revisions that are target revisions of a deployment group.
  • exclude: Do not list revisions that are target revisions of a deployment group.
  • ignore: List all revisions, regardless of whether they are target revisions of a deployment group.

Parameters:
deployed Whether to list revisions based on whether the revision is the target revision of an deployment group:
  • include: List revisions that are target revisions of a deployment group.
  • exclude: Do not list revisions that are target revisions of a deployment group.
  • ignore: List all revisions, regardless of whether they are target revisions of a deployment group.
Returns:
Returns a reference to this object so that method calls can be chained together.
See also:
ListStateFilterAction
            ListStateFilterAction deployed) {
        setDeployed(deployed);
        return this;
    }

    

An identifier that was returned from the previous list application revisions call, which can be used to return the next set of applications in the list.

Parameters:
nextToken An identifier that was returned from the previous list application revisions call, which can be used to return the next set of applications in the list.
    public void setNextToken(String nextToken) {
        this. = nextToken;
    }

    

An identifier that was returned from the previous list application revisions call, which can be used to return the next set of applications in the list.

Returns:
An identifier that was returned from the previous list application revisions call, which can be used to return the next set of applications in the list.
    public String getNextToken() {
        return this.;
    }

    

An identifier that was returned from the previous list application revisions call, which can be used to return the next set of applications in the list.

Parameters:
nextToken An identifier that was returned from the previous list application revisions call, which can be used to return the next set of applications in the list.
Returns:
Returns a reference to this object so that method calls can be chained together.
        setNextToken(nextToken);
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getApplicationName() != null)
            sb.append("ApplicationName: " + getApplicationName() + ",");
        if (getSortBy() != null)
            sb.append("SortBy: " + getSortBy() + ",");
        if (getSortOrder() != null)
            sb.append("SortOrder: " + getSortOrder() + ",");
        if (getS3Bucket() != null)
            sb.append("S3Bucket: " + getS3Bucket() + ",");
        if (getS3KeyPrefix() != null)
            sb.append("S3KeyPrefix: " + getS3KeyPrefix() + ",");
        if (getDeployed() != null)
            sb.append("Deployed: " + getDeployed() + ",");
        if (getNextToken() != null)
            sb.append("NextToken: " + getNextToken());
        sb.append("}");
        return sb.toString();
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (obj instanceof ListApplicationRevisionsRequest == false)
            return false;
        if (other.getApplicationName() == null
                ^ this.getApplicationName() == null)
            return false;
        if (other.getApplicationName() != null
                && other.getApplicationName().equals(this.getApplicationName()) == false)
            return false;
        if (other.getSortBy() == null ^ this.getSortBy() == null)
            return false;
        if (other.getSortBy() != null
                && other.getSortBy().equals(this.getSortBy()) == false)
            return false;
        if (other.getSortOrder() == null ^ this.getSortOrder() == null)
            return false;
        if (other.getSortOrder() != null
                && other.getSortOrder().equals(this.getSortOrder()) == false)
            return false;
        if (other.getS3Bucket() == null ^ this.getS3Bucket() == null)
            return false;
        if (other.getS3Bucket() != null
                && other.getS3Bucket().equals(this.getS3Bucket()) == false)
            return false;
        if (other.getS3KeyPrefix() == null ^ this.getS3KeyPrefix() == null)
            return false;
        if (other.getS3KeyPrefix() != null
                && other.getS3KeyPrefix().equals(this.getS3KeyPrefix()) == false)
            return false;
        if (other.getDeployed() == null ^ this.getDeployed() == null)
            return false;
        if (other.getDeployed() != null
                && other.getDeployed().equals(this.getDeployed()) == false)
            return false;
        if (other.getNextToken() == null ^ this.getNextToken() == null)
            return false;
        if (other.getNextToken() != null
                && other.getNextToken().equals(this.getNextToken()) == false)
            return false;
        return true;
    }
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        hashCode = prime
                * hashCode
                + ((getApplicationName() == null) ? 0 : getApplicationName()
                        .hashCode());
        hashCode = prime * hashCode
                + ((getSortBy() == null) ? 0 : getSortBy().hashCode());
        hashCode = prime * hashCode
                + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode());
        hashCode = prime * hashCode
                + ((getS3Bucket() == null) ? 0 : getS3Bucket().hashCode());
        hashCode = prime
                * hashCode
                + ((getS3KeyPrefix() == null) ? 0 : getS3KeyPrefix().hashCode());
        hashCode = prime * hashCode
                + ((getDeployed() == null) ? 0 : getDeployed().hashCode());
        hashCode = prime * hashCode
                + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
        return hashCode;
    }
    @Override
        return (ListApplicationRevisionsRequestsuper.clone();
    }
New to GrepCode? Check out our FAQ X