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.redshift.model;
 

The result of the snapshot copy grant.

 
 public class DescribeSnapshotCopyGrantsResult implements SerializableCloneable {

    
An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeSnapshotCopyGrant request exceed the value specified in MaxRecords, AWS returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

Constraints: You can specify either the SnapshotCopyGrantName parameter or the Marker parameter, but not both.

 
     private String marker;

    
The list of snapshot copy grants.
 
An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeSnapshotCopyGrant request exceed the value specified in MaxRecords, AWS returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

Constraints: You can specify either the SnapshotCopyGrantName parameter or the Marker parameter, but not both.

Returns:
An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeSnapshotCopyGrant request exceed the value specified in MaxRecords, AWS returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

Constraints: You can specify either the SnapshotCopyGrantName parameter or the Marker parameter, but not both.

 
     public String getMarker() {
         return ;
     }
    
    
An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeSnapshotCopyGrant request exceed the value specified in MaxRecords, AWS returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

Constraints: You can specify either the SnapshotCopyGrantName parameter or the Marker parameter, but not both.

Parameters:
marker An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeSnapshotCopyGrant request exceed the value specified in MaxRecords, AWS returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

Constraints: You can specify either the SnapshotCopyGrantName parameter or the Marker parameter, but not both.

 
     public void setMarker(String marker) {
         this. = marker;
     }
    
    
An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeSnapshotCopyGrant request exceed the value specified in MaxRecords, AWS returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

Constraints: You can specify either the SnapshotCopyGrantName parameter or the Marker parameter, but not both.

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

Parameters:
marker An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeSnapshotCopyGrant request exceed the value specified in MaxRecords, AWS returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

Constraints: You can specify either the SnapshotCopyGrantName parameter or the Marker parameter, but not both.

Returns:
A reference to this updated object so that method calls can be chained together.
        this. = marker;
        return this;
    }

    
The list of snapshot copy grants.

Returns:
The list of snapshot copy grants.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
The list of snapshot copy grants.

Parameters:
snapshotCopyGrants The list of snapshot copy grants.
    public void setSnapshotCopyGrants(java.util.Collection<SnapshotCopyGrantsnapshotCopyGrants) {
        if (snapshotCopyGrants == null) {
            this. = null;
            return;
        }
        snapshotCopyGrantsCopy.addAll(snapshotCopyGrants);
        this. = snapshotCopyGrantsCopy;
    }
    
    
The list of snapshot copy grants.

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

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

Parameters:
snapshotCopyGrants The list of snapshot copy grants.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getSnapshotCopyGrants() == nullsetSnapshotCopyGrants(new java.util.ArrayList<SnapshotCopyGrant>(snapshotCopyGrants.length));
        for (SnapshotCopyGrant value : snapshotCopyGrants) {
            getSnapshotCopyGrants().add(value);
        }
        return this;
    }
    
    
The list of snapshot copy grants.

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

Parameters:
snapshotCopyGrants The list of snapshot copy grants.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (snapshotCopyGrants == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<SnapshotCopyGrantsnapshotCopyGrantsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<SnapshotCopyGrant>(snapshotCopyGrants.size());
            snapshotCopyGrantsCopy.addAll(snapshotCopyGrants);
            this. = snapshotCopyGrantsCopy;
        }
        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 (getMarker() != nullsb.append("Marker: " + getMarker() + ",");
        if (getSnapshotCopyGrants() != nullsb.append("SnapshotCopyGrants: " + getSnapshotCopyGrants() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); 
        hashCode = prime * hashCode + ((getSnapshotCopyGrants() == null) ? 0 : getSnapshotCopyGrants().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DescribeSnapshotCopyGrantsResult == falsereturn false;
        
        if (other.getMarker() == null ^ this.getMarker() == nullreturn false;
        if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == falsereturn false
        if (other.getSnapshotCopyGrants() == null ^ this.getSnapshotCopyGrants() == nullreturn false;
        if (other.getSnapshotCopyGrants() != null && other.getSnapshotCopyGrants().equals(this.getSnapshotCopyGrants()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (DescribeSnapshotCopyGrantsResultsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X