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;
 
 
Container for the parameters to the ListApplicationRevisions operation.

Lists information about revisions for an application.

 
 public class ListApplicationRevisionsRequest extends AmazonWebServiceRequest implements SerializableCloneable {

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

Constraints:
Length: 1 - 100

 
     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.

Constraints:
Allowed Values: registerTime, firstUsedTime, lastUsedTime

 
     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.

Constraints:
Allowed Values: ascending, descending

 
     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.

Constraints:
Allowed Values: include, exclude, ignore

 
     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.

Constraints:
Length: 1 - 100

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

Constraints:
Length: 1 - 100

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 a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 100

Parameters:
applicationName The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListApplicationRevisionsRequest withApplicationName(String applicationName) {
        this. = 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.

Constraints:
Allowed Values: registerTime, firstUsedTime, lastUsedTime

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 ;
    }
    
    
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.

Constraints:
Allowed Values: registerTime, firstUsedTime, lastUsedTime

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 a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: registerTime, firstUsedTime, lastUsedTime

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:
A reference to this updated object so that method calls can be chained together.
See also:
ApplicationRevisionSortBy
        this. = 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.

Constraints:
Allowed Values: registerTime, firstUsedTime, lastUsedTime

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(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.

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

Constraints:
Allowed Values: registerTime, firstUsedTime, lastUsedTime

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:
A reference to this updated object so that method calls can be chained together.
See also:
ApplicationRevisionSortBy
        this. = sortBy.toString();
        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.

Constraints:
Allowed Values: ascending, descending

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 ;
    }
    
    
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.

Constraints:
Allowed Values: ascending, descending

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 a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ascending, descending

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:
A reference to this updated object so that method calls can be chained together.
See also:
SortOrder
        this. = 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.

Constraints:
Allowed Values: ascending, descending

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(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.

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

Constraints:
Allowed Values: ascending, descending

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:
A reference to this updated object so that method calls can be chained together.
See also:
SortOrder
        this. = sortOrder.toString();
        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.

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 ;
    }
    
    
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 reference to this object so that method calls can be chained together.

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:
A reference to this updated object so that method calls can be chained together.
        this. = s3Bucket;
        return this;
    }

    
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 ;
    }
    
    
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 reference to this object so that method calls can be chained together.

Parameters:
s3KeyPrefix A specific key prefix for the set of Amazon S3 objects to limit the search for revisions.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = 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.

Constraints:
Allowed Values: include, exclude, ignore

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 ;
    }
    
    
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.

Constraints:
Allowed Values: include, exclude, ignore

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 a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: include, exclude, ignore

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:
A reference to this updated object so that method calls can be chained together.
See also:
ListStateFilterAction
        this. = 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.

Constraints:
Allowed Values: include, exclude, ignore

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(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.

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

Constraints:
Allowed Values: include, exclude, ignore

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:
A reference to this updated object so that method calls can be chained together.
See also:
ListStateFilterAction
        this. = deployed.toString();
        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.

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 ;
    }
    
    
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 a reference to this object so that method calls can be chained together.

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:
A reference to this updated object so that method calls can be chained together.
        this. = 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() != nullsb.append("ApplicationName: " + getApplicationName() + ",");
        if (getSortBy() != nullsb.append("SortBy: " + getSortBy() + ",");
        if (getSortOrder() != nullsb.append("SortOrder: " + getSortOrder() + ",");
        if (getS3Bucket() != nullsb.append("S3Bucket: " + getS3Bucket() + ",");
        if (getS3KeyPrefix() != nullsb.append("S3KeyPrefix: " + getS3KeyPrefix() + ",");
        if (getDeployed() != nullsb.append("Deployed: " + getDeployed() + ",");
        if (getNextToken() != nullsb.append("NextToken: " + getNextToken() );
        sb.append("}");
        return sb.toString();
    }
    
    @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
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ListApplicationRevisionsRequest == falsereturn false;
        
        if (other.getApplicationName() == null ^ this.getApplicationName() == nullreturn false;
        if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == falsereturn false
        if (other.getSortBy() == null ^ this.getSortBy() == nullreturn false;
        if (other.getSortBy() != null && other.getSortBy().equals(this.getSortBy()) == falsereturn false
        if (other.getSortOrder() == null ^ this.getSortOrder() == nullreturn false;
        if (other.getSortOrder() != null && other.getSortOrder().equals(this.getSortOrder()) == falsereturn false
        if (other.getS3Bucket() == null ^ this.getS3Bucket() == nullreturn false;
        if (other.getS3Bucket() != null && other.getS3Bucket().equals(this.getS3Bucket()) == falsereturn false
        if (other.getS3KeyPrefix() == null ^ this.getS3KeyPrefix() == nullreturn false;
        if (other.getS3KeyPrefix() != null && other.getS3KeyPrefix().equals(this.getS3KeyPrefix()) == falsereturn false
        if (other.getDeployed() == null ^ this.getDeployed() == nullreturn false;
        if (other.getDeployed() != null && other.getDeployed().equals(this.getDeployed()) == falsereturn false
        if (other.getNextToken() == null ^ this.getNextToken() == nullreturn false;
        if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == falsereturn false
        return true;
    }
    
    @Override
        
            return (ListApplicationRevisionsRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X