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

com.amazonaws.services.chimesdkvoice.model.UpdateSipMediaApplicationCallRequest Maven / Gradle / Ivy

/*
 * 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 UpdateSipMediaApplicationCallRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The ID of the SIP media application handling the call. *

*/ private String sipMediaApplicationId; /** *

* The ID of the call transaction. *

*/ private String transactionId; /** *

* Arguments made available to the Lambda function as part of the CALL_UPDATE_REQUESTED event. Can * contain 0-20 key-value pairs. *

*/ private java.util.Map arguments; /** *

* The ID of the SIP media application handling the call. *

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

* The ID of the SIP media application handling the call. *

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

* The ID of the SIP media application handling the call. *

* * @param sipMediaApplicationId * The ID of the SIP media application handling the call. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateSipMediaApplicationCallRequest withSipMediaApplicationId(String sipMediaApplicationId) { setSipMediaApplicationId(sipMediaApplicationId); return this; } /** *

* The ID of the call transaction. *

* * @param transactionId * The ID of the call transaction. */ public void setTransactionId(String transactionId) { this.transactionId = transactionId; } /** *

* The ID of the call transaction. *

* * @return The ID of the call transaction. */ public String getTransactionId() { return this.transactionId; } /** *

* The ID of the call transaction. *

* * @param transactionId * The ID of the call transaction. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateSipMediaApplicationCallRequest withTransactionId(String transactionId) { setTransactionId(transactionId); return this; } /** *

* Arguments made available to the Lambda function as part of the CALL_UPDATE_REQUESTED event. Can * contain 0-20 key-value pairs. *

* * @return Arguments made available to the Lambda function as part of the CALL_UPDATE_REQUESTED event. * Can contain 0-20 key-value pairs. */ public java.util.Map getArguments() { return arguments; } /** *

* Arguments made available to the Lambda function as part of the CALL_UPDATE_REQUESTED event. Can * contain 0-20 key-value pairs. *

* * @param arguments * Arguments made available to the Lambda function as part of the CALL_UPDATE_REQUESTED event. * Can contain 0-20 key-value pairs. */ public void setArguments(java.util.Map arguments) { this.arguments = arguments; } /** *

* Arguments made available to the Lambda function as part of the CALL_UPDATE_REQUESTED event. Can * contain 0-20 key-value pairs. *

* * @param arguments * Arguments made available to the Lambda function as part of the CALL_UPDATE_REQUESTED event. * Can contain 0-20 key-value pairs. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateSipMediaApplicationCallRequest withArguments(java.util.Map arguments) { setArguments(arguments); return this; } /** * Add a single Arguments entry * * @see UpdateSipMediaApplicationCallRequest#withArguments * @returns a reference to this object so that method calls can be chained together. */ public UpdateSipMediaApplicationCallRequest addArgumentsEntry(String key, String value) { if (null == this.arguments) { this.arguments = new java.util.HashMap(); } if (this.arguments.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.arguments.put(key, value); return this; } /** * Removes all the entries added into Arguments. * * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateSipMediaApplicationCallRequest clearArgumentsEntries() { this.arguments = null; 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 (getSipMediaApplicationId() != null) sb.append("SipMediaApplicationId: ").append(getSipMediaApplicationId()).append(","); if (getTransactionId() != null) sb.append("TransactionId: ").append(getTransactionId()).append(","); if (getArguments() != null) sb.append("Arguments: ").append("***Sensitive Data Redacted***"); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateSipMediaApplicationCallRequest == false) return false; UpdateSipMediaApplicationCallRequest other = (UpdateSipMediaApplicationCallRequest) obj; if (other.getSipMediaApplicationId() == null ^ this.getSipMediaApplicationId() == null) return false; if (other.getSipMediaApplicationId() != null && other.getSipMediaApplicationId().equals(this.getSipMediaApplicationId()) == false) return false; if (other.getTransactionId() == null ^ this.getTransactionId() == null) return false; if (other.getTransactionId() != null && other.getTransactionId().equals(this.getTransactionId()) == false) return false; if (other.getArguments() == null ^ this.getArguments() == null) return false; if (other.getArguments() != null && other.getArguments().equals(this.getArguments()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSipMediaApplicationId() == null) ? 0 : getSipMediaApplicationId().hashCode()); hashCode = prime * hashCode + ((getTransactionId() == null) ? 0 : getTransactionId().hashCode()); hashCode = prime * hashCode + ((getArguments() == null) ? 0 : getArguments().hashCode()); return hashCode; } @Override public UpdateSipMediaApplicationCallRequest clone() { return (UpdateSipMediaApplicationCallRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy