/* * Copyright 2018-2023 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.chimesdkvoice.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 SDK 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 SIP headers added to an outbound call leg. *
*/ private java.util.Map
* Context passed to a CreateSipMediaApplication API call. For example, you could pass key-value pairs such as:
* "FirstName": "John", "LastName": "Doe"
*
* The phone number that a user calls from. This is a phone number in your Amazon Chime SDK phone number inventory. *
* * @param fromPhoneNumber * The phone number that a user calls from. This is a phone number in your Amazon Chime SDK 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 SDK phone number inventory. *
* * @return The phone number that a user calls from. This is a phone number in your Amazon Chime SDK 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 SDK phone number inventory. *
* * @param fromPhoneNumber * The phone number that a user calls from. This is a phone number in your Amazon Chime SDK 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; } /** ** The SIP headers added to an outbound call leg. *
* * @return The SIP headers added to an outbound call leg. */ public java.util.Map* The SIP headers added to an outbound call leg. *
* * @param sipHeaders * The SIP headers added to an outbound call leg. */ public void setSipHeaders(java.util.Map* The SIP headers added to an outbound call leg. *
* * @param sipHeaders * The SIP headers added to an outbound call leg. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSipMediaApplicationCallRequest withSipHeaders(java.util.Map
* Context passed to a CreateSipMediaApplication API call. For example, you could pass key-value pairs such as:
* "FirstName": "John", "LastName": "Doe"
*
"FirstName": "John", "LastName": "Doe"
*/
public java.util.Map
* Context passed to a CreateSipMediaApplication API call. For example, you could pass key-value pairs such as:
* "FirstName": "John", "LastName": "Doe"
*
"FirstName": "John", "LastName": "Doe"
*/
public void setArgumentsMap(java.util.Map
* Context passed to a CreateSipMediaApplication API call. For example, you could pass key-value pairs such as:
* "FirstName": "John", "LastName": "Doe"
*
"FirstName": "John", "LastName": "Doe"
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateSipMediaApplicationCallRequest withArgumentsMap(java.util.Map