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

com.amazonaws.services.chime.model.CreateSipMediaApplicationCallRequest Maven / Gradle / Ivy

/*
 * Copyright 2016-2021 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.chime.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The phone number that a user calls from. This is a phone number in your Amazon Chime phone number inventory. *

*/ private String fromPhoneNumber; /** *

* The phone number that the service should call. *

*/ private String toPhoneNumber; /** *

* The ID of the SIP media application. *

*/ private String sipMediaApplicationId; /** *

* The phone number that a user calls from. This is a phone number in your Amazon Chime phone number inventory. *

* * @param fromPhoneNumber * The phone number that a user calls from. This is a phone number in your Amazon Chime phone number * inventory. */ public void setFromPhoneNumber(String fromPhoneNumber) { this.fromPhoneNumber = fromPhoneNumber; } /** *

* The phone number that a user calls from. This is a phone number in your Amazon Chime phone number inventory. *

* * @return The phone number that a user calls from. This is a phone number in your Amazon Chime phone number * inventory. */ public String getFromPhoneNumber() { return this.fromPhoneNumber; } /** *

* The phone number that a user calls from. This is a phone number in your Amazon Chime phone number inventory. *

* * @param fromPhoneNumber * The phone number that a user calls from. This is a phone number in your Amazon Chime phone number * inventory. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSipMediaApplicationCallRequest withFromPhoneNumber(String fromPhoneNumber) { setFromPhoneNumber(fromPhoneNumber); return this; } /** *

* The phone number that the service should call. *

* * @param toPhoneNumber * The phone number that the service should call. */ public void setToPhoneNumber(String toPhoneNumber) { this.toPhoneNumber = toPhoneNumber; } /** *

* The phone number that the service should call. *

* * @return The phone number that the service should call. */ public String getToPhoneNumber() { return this.toPhoneNumber; } /** *

* The phone number that the service should call. *

* * @param toPhoneNumber * The phone number that the service should call. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSipMediaApplicationCallRequest withToPhoneNumber(String toPhoneNumber) { setToPhoneNumber(toPhoneNumber); return this; } /** *

* The ID of the SIP media application. *

* * @param sipMediaApplicationId * The ID of the SIP media application. */ public void setSipMediaApplicationId(String sipMediaApplicationId) { this.sipMediaApplicationId = sipMediaApplicationId; } /** *

* The ID of the SIP media application. *

* * @return The ID of the SIP media application. */ public String getSipMediaApplicationId() { return this.sipMediaApplicationId; } /** *

* The ID of the SIP media application. *

* * @param sipMediaApplicationId * The ID of the SIP media application. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSipMediaApplicationCallRequest withSipMediaApplicationId(String sipMediaApplicationId) { setSipMediaApplicationId(sipMediaApplicationId); 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 (getFromPhoneNumber() != null) sb.append("FromPhoneNumber: ").append("***Sensitive Data Redacted***").append(","); if (getToPhoneNumber() != null) sb.append("ToPhoneNumber: ").append("***Sensitive Data Redacted***").append(","); if (getSipMediaApplicationId() != null) sb.append("SipMediaApplicationId: ").append(getSipMediaApplicationId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateSipMediaApplicationCallRequest == false) return false; CreateSipMediaApplicationCallRequest other = (CreateSipMediaApplicationCallRequest) obj; if (other.getFromPhoneNumber() == null ^ this.getFromPhoneNumber() == null) return false; if (other.getFromPhoneNumber() != null && other.getFromPhoneNumber().equals(this.getFromPhoneNumber()) == false) return false; if (other.getToPhoneNumber() == null ^ this.getToPhoneNumber() == null) return false; if (other.getToPhoneNumber() != null && other.getToPhoneNumber().equals(this.getToPhoneNumber()) == false) return false; if (other.getSipMediaApplicationId() == null ^ this.getSipMediaApplicationId() == null) return false; if (other.getSipMediaApplicationId() != null && other.getSipMediaApplicationId().equals(this.getSipMediaApplicationId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFromPhoneNumber() == null) ? 0 : getFromPhoneNumber().hashCode()); hashCode = prime * hashCode + ((getToPhoneNumber() == null) ? 0 : getToPhoneNumber().hashCode()); hashCode = prime * hashCode + ((getSipMediaApplicationId() == null) ? 0 : getSipMediaApplicationId().hashCode()); return hashCode; } @Override public CreateSipMediaApplicationCallRequest clone() { return (CreateSipMediaApplicationCallRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy