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

Returns a list containing all of the identities (email addresses and domains) for a specific AWS Account, regardless of verification status.

This action is throttled at one request per second.

 
 public class ListIdentitiesRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
The type of the identities to list. Possible values are "EmailAddress" and "Domain". If this parameter is omitted, then all identities will be listed.

Constraints:
Allowed Values: EmailAddress, Domain

 
     private String identityType;

    
The token to use for pagination.
 
     private String nextToken;

    
The maximum number of identities per page. Possible values are 1-1000 inclusive.
 
     private Integer maxItems;

    
The type of the identities to list. Possible values are "EmailAddress" and "Domain". If this parameter is omitted, then all identities will be listed.

Constraints:
Allowed Values: EmailAddress, Domain

Returns:
The type of the identities to list. Possible values are "EmailAddress" and "Domain". If this parameter is omitted, then all identities will be listed.
See also:
IdentityType
 
     public String getIdentityType() {
         return ;
     }
    
    
The type of the identities to list. Possible values are "EmailAddress" and "Domain". If this parameter is omitted, then all identities will be listed.

Constraints:
Allowed Values: EmailAddress, Domain

Parameters:
identityType The type of the identities to list. Possible values are "EmailAddress" and "Domain". If this parameter is omitted, then all identities will be listed.
See also:
IdentityType
 
     public void setIdentityType(String identityType) {
         this. = identityType;
     }
    
    
The type of the identities to list. Possible values are "EmailAddress" and "Domain". If this parameter is omitted, then all identities will be listed.

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

Constraints:
Allowed Values: EmailAddress, Domain

Parameters:
identityType The type of the identities to list. Possible values are "EmailAddress" and "Domain". If this parameter is omitted, then all identities will be listed.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
IdentityType
    public ListIdentitiesRequest withIdentityType(String identityType) {
        this. = identityType;
        return this;
    }

    
The type of the identities to list. Possible values are "EmailAddress" and "Domain". If this parameter is omitted, then all identities will be listed.

Constraints:
Allowed Values: EmailAddress, Domain

Parameters:
identityType The type of the identities to list. Possible values are "EmailAddress" and "Domain". If this parameter is omitted, then all identities will be listed.
See also:
IdentityType
    public void setIdentityType(IdentityType identityType) {
        this. = identityType.toString();
    }
    
    
The type of the identities to list. Possible values are "EmailAddress" and "Domain". If this parameter is omitted, then all identities will be listed.

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

Constraints:
Allowed Values: EmailAddress, Domain

Parameters:
identityType The type of the identities to list. Possible values are "EmailAddress" and "Domain". If this parameter is omitted, then all identities will be listed.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
IdentityType
    public ListIdentitiesRequest withIdentityType(IdentityType identityType) {
        this. = identityType.toString();
        return this;
    }

    
The token to use for pagination.

Returns:
The token to use for pagination.
    public String getNextToken() {
        return ;
    }
    
    
The token to use for pagination.

Parameters:
nextToken The token to use for pagination.
    public void setNextToken(String nextToken) {
        this. = nextToken;
    }
    
    
The token to use for pagination.

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

Parameters:
nextToken The token to use for pagination.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListIdentitiesRequest withNextToken(String nextToken) {
        this. = nextToken;
        return this;
    }

    
The maximum number of identities per page. Possible values are 1-1000 inclusive.

Returns:
The maximum number of identities per page. Possible values are 1-1000 inclusive.
    public Integer getMaxItems() {
        return ;
    }
    
    
The maximum number of identities per page. Possible values are 1-1000 inclusive.

Parameters:
maxItems The maximum number of identities per page. Possible values are 1-1000 inclusive.
    public void setMaxItems(Integer maxItems) {
        this. = maxItems;
    }
    
    
The maximum number of identities per page. Possible values are 1-1000 inclusive.

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

Parameters:
maxItems The maximum number of identities per page. Possible values are 1-1000 inclusive.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListIdentitiesRequest withMaxItems(Integer maxItems) {
        this. = maxItems;
        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 (getIdentityType() != nullsb.append("IdentityType: " + getIdentityType() + ",");
        if (getNextToken() != nullsb.append("NextToken: " + getNextToken() + ",");
        if (getMaxItems() != nullsb.append("MaxItems: " + getMaxItems() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getIdentityType() == null) ? 0 : getIdentityType().hashCode()); 
        hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); 
        hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ListIdentitiesRequest == falsereturn false;
        ListIdentitiesRequest other = (ListIdentitiesRequest)obj;
        
        if (other.getIdentityType() == null ^ this.getIdentityType() == nullreturn false;
        if (other.getIdentityType() != null && other.getIdentityType().equals(this.getIdentityType()) == falsereturn false
        if (other.getNextToken() == null ^ this.getNextToken() == nullreturn false;
        if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == falsereturn false
        if (other.getMaxItems() == null ^ this.getMaxItems() == nullreturn false;
        if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == falsereturn false
        return true;
    }
    
    @Override
    public ListIdentitiesRequest clone() {
        
            return (ListIdentitiesRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X