All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.simpleemail.model.ListIdentitiesRequest Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-2016 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;

import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* Represents a request to return a list of all identities (email addresses and * domains) that you have attempted to verify under your AWS account, regardless * of verification status. *

*/ public class ListIdentitiesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable { /** *

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

*/ 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. *

* * @param 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 IdentityType */ public void setIdentityType(String identityType) { this.identityType = 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. *

* * @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. * @see IdentityType */ public String getIdentityType() { return 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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be * chained together. * @see IdentityType */ public ListIdentitiesRequest withIdentityType(String identityType) { setIdentityType(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. *

* * @param 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 IdentityType */ public void setIdentityType(IdentityType identityType) { this.identityType = 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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be * chained together. * @see IdentityType */ public ListIdentitiesRequest withIdentityType(IdentityType identityType) { setIdentityType(identityType); return this; } /** *

* The token to use for pagination. *

* * @param nextToken * The token to use for pagination. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* The token to use for pagination. *

* * @return The token to use for pagination. */ public String getNextToken() { return this.nextToken; } /** *

* The token to use for pagination. *

* * @param nextToken * The token to use for pagination. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListIdentitiesRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

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

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

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

* * @return The maximum number of identities per page. Possible values are * 1-1000 inclusive. */ public Integer getMaxItems() { return this.maxItems; } /** *

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

* * @param maxItems * The maximum number of identities per page. Possible values are * 1-1000 inclusive. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListIdentitiesRequest withMaxItems(Integer maxItems) { setMaxItems(maxItems); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getIdentityType() != null) sb.append("IdentityType: " + getIdentityType() + ","); if (getNextToken() != null) sb.append("NextToken: " + getNextToken() + ","); if (getMaxItems() != null) sb.append("MaxItems: " + getMaxItems()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListIdentitiesRequest == false) return false; ListIdentitiesRequest other = (ListIdentitiesRequest) obj; if (other.getIdentityType() == null ^ this.getIdentityType() == null) return false; if (other.getIdentityType() != null && other.getIdentityType().equals(this.getIdentityType()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getMaxItems() == null ^ this.getMaxItems() == null) return false; if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == false) return false; return true; } @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 ListIdentitiesRequest clone() { return (ListIdentitiesRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy