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

com.amazonaws.services.pinpointsmsvoicev2.model.OptOutListInformation Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Pinpoint SMS Voice V2 module holds the client classes that are used for communicating with Amazon Pinpoint SMS Voice V2 Service

The newest version!
/*
 * Copyright 2019-2024 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.pinpointsmsvoicev2.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The information for all OptOutList in an Amazon Web Services account. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class OptOutListInformation implements Serializable, Cloneable, StructuredPojo { /** *

* The Amazon Resource Name (ARN) of the OptOutList. *

*/ private String optOutListArn; /** *

* The name of the OptOutList. *

*/ private String optOutListName; /** *

* The time when the OutOutList was created, in UNIX epoch time * format. *

*/ private java.util.Date createdTimestamp; /** *

* The Amazon Resource Name (ARN) of the OptOutList. *

* * @param optOutListArn * The Amazon Resource Name (ARN) of the OptOutList. */ public void setOptOutListArn(String optOutListArn) { this.optOutListArn = optOutListArn; } /** *

* The Amazon Resource Name (ARN) of the OptOutList. *

* * @return The Amazon Resource Name (ARN) of the OptOutList. */ public String getOptOutListArn() { return this.optOutListArn; } /** *

* The Amazon Resource Name (ARN) of the OptOutList. *

* * @param optOutListArn * The Amazon Resource Name (ARN) of the OptOutList. * @return Returns a reference to this object so that method calls can be chained together. */ public OptOutListInformation withOptOutListArn(String optOutListArn) { setOptOutListArn(optOutListArn); return this; } /** *

* The name of the OptOutList. *

* * @param optOutListName * The name of the OptOutList. */ public void setOptOutListName(String optOutListName) { this.optOutListName = optOutListName; } /** *

* The name of the OptOutList. *

* * @return The name of the OptOutList. */ public String getOptOutListName() { return this.optOutListName; } /** *

* The name of the OptOutList. *

* * @param optOutListName * The name of the OptOutList. * @return Returns a reference to this object so that method calls can be chained together. */ public OptOutListInformation withOptOutListName(String optOutListName) { setOptOutListName(optOutListName); return this; } /** *

* The time when the OutOutList was created, in UNIX epoch time * format. *

* * @param createdTimestamp * The time when the OutOutList was created, in UNIX epoch time * format. */ public void setCreatedTimestamp(java.util.Date createdTimestamp) { this.createdTimestamp = createdTimestamp; } /** *

* The time when the OutOutList was created, in UNIX epoch time * format. *

* * @return The time when the OutOutList was created, in UNIX epoch * time format. */ public java.util.Date getCreatedTimestamp() { return this.createdTimestamp; } /** *

* The time when the OutOutList was created, in UNIX epoch time * format. *

* * @param createdTimestamp * The time when the OutOutList was created, in UNIX epoch time * format. * @return Returns a reference to this object so that method calls can be chained together. */ public OptOutListInformation withCreatedTimestamp(java.util.Date createdTimestamp) { setCreatedTimestamp(createdTimestamp); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getOptOutListArn() != null) sb.append("OptOutListArn: ").append(getOptOutListArn()).append(","); if (getOptOutListName() != null) sb.append("OptOutListName: ").append(getOptOutListName()).append(","); if (getCreatedTimestamp() != null) sb.append("CreatedTimestamp: ").append(getCreatedTimestamp()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof OptOutListInformation == false) return false; OptOutListInformation other = (OptOutListInformation) obj; if (other.getOptOutListArn() == null ^ this.getOptOutListArn() == null) return false; if (other.getOptOutListArn() != null && other.getOptOutListArn().equals(this.getOptOutListArn()) == false) return false; if (other.getOptOutListName() == null ^ this.getOptOutListName() == null) return false; if (other.getOptOutListName() != null && other.getOptOutListName().equals(this.getOptOutListName()) == false) return false; if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null) return false; if (other.getCreatedTimestamp() != null && other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOptOutListArn() == null) ? 0 : getOptOutListArn().hashCode()); hashCode = prime * hashCode + ((getOptOutListName() == null) ? 0 : getOptOutListName().hashCode()); hashCode = prime * hashCode + ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode()); return hashCode; } @Override public OptOutListInformation clone() { try { return (OptOutListInformation) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.pinpointsmsvoicev2.model.transform.OptOutListInformationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy