/* * 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.chime.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The proxy configuration for an Amazon Chime Voice Connector. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Proxy implements Serializable, Cloneable, StructuredPojo { /** ** The default number of minutes allowed for proxy sessions. *
*/ private Integer defaultSessionExpiryMinutes; /** ** When true, stops proxy sessions from being created on the specified Amazon Chime Voice Connector. *
*/ private Boolean disabled; /** ** The phone number to route calls to after a proxy session expires. *
*/ private String fallBackPhoneNumber; /** ** The countries for proxy phone numbers to be selected from. *
*/ private java.util.List* The default number of minutes allowed for proxy sessions. *
* * @param defaultSessionExpiryMinutes * The default number of minutes allowed for proxy sessions. */ public void setDefaultSessionExpiryMinutes(Integer defaultSessionExpiryMinutes) { this.defaultSessionExpiryMinutes = defaultSessionExpiryMinutes; } /** ** The default number of minutes allowed for proxy sessions. *
* * @return The default number of minutes allowed for proxy sessions. */ public Integer getDefaultSessionExpiryMinutes() { return this.defaultSessionExpiryMinutes; } /** ** The default number of minutes allowed for proxy sessions. *
* * @param defaultSessionExpiryMinutes * The default number of minutes allowed for proxy sessions. * @return Returns a reference to this object so that method calls can be chained together. */ public Proxy withDefaultSessionExpiryMinutes(Integer defaultSessionExpiryMinutes) { setDefaultSessionExpiryMinutes(defaultSessionExpiryMinutes); return this; } /** ** When true, stops proxy sessions from being created on the specified Amazon Chime Voice Connector. *
* * @param disabled * When true, stops proxy sessions from being created on the specified Amazon Chime Voice Connector. */ public void setDisabled(Boolean disabled) { this.disabled = disabled; } /** ** When true, stops proxy sessions from being created on the specified Amazon Chime Voice Connector. *
* * @return When true, stops proxy sessions from being created on the specified Amazon Chime Voice Connector. */ public Boolean getDisabled() { return this.disabled; } /** ** When true, stops proxy sessions from being created on the specified Amazon Chime Voice Connector. *
* * @param disabled * When true, stops proxy sessions from being created on the specified Amazon Chime Voice Connector. * @return Returns a reference to this object so that method calls can be chained together. */ public Proxy withDisabled(Boolean disabled) { setDisabled(disabled); return this; } /** ** When true, stops proxy sessions from being created on the specified Amazon Chime Voice Connector. *
* * @return When true, stops proxy sessions from being created on the specified Amazon Chime Voice Connector. */ public Boolean isDisabled() { return this.disabled; } /** ** The phone number to route calls to after a proxy session expires. *
* * @param fallBackPhoneNumber * The phone number to route calls to after a proxy session expires. */ public void setFallBackPhoneNumber(String fallBackPhoneNumber) { this.fallBackPhoneNumber = fallBackPhoneNumber; } /** ** The phone number to route calls to after a proxy session expires. *
* * @return The phone number to route calls to after a proxy session expires. */ public String getFallBackPhoneNumber() { return this.fallBackPhoneNumber; } /** ** The phone number to route calls to after a proxy session expires. *
* * @param fallBackPhoneNumber * The phone number to route calls to after a proxy session expires. * @return Returns a reference to this object so that method calls can be chained together. */ public Proxy withFallBackPhoneNumber(String fallBackPhoneNumber) { setFallBackPhoneNumber(fallBackPhoneNumber); return this; } /** ** The countries for proxy phone numbers to be selected from. *
* * @return The countries for proxy phone numbers to be selected from. */ public java.util.List* The countries for proxy phone numbers to be selected from. *
* * @param phoneNumberCountries * The countries for proxy phone numbers to be selected from. */ public void setPhoneNumberCountries(java.util.Collection* The countries for proxy phone numbers to be selected from. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPhoneNumberCountries(java.util.Collection)} or {@link #withPhoneNumberCountries(java.util.Collection)} * if you want to override the existing values. *
* * @param phoneNumberCountries * The countries for proxy phone numbers to be selected from. * @return Returns a reference to this object so that method calls can be chained together. */ public Proxy withPhoneNumberCountries(String... phoneNumberCountries) { if (this.phoneNumberCountries == null) { setPhoneNumberCountries(new java.util.ArrayList* The countries for proxy phone numbers to be selected from. *
* * @param phoneNumberCountries * The countries for proxy phone numbers to be selected from. * @return Returns a reference to this object so that method calls can be chained together. */ public Proxy withPhoneNumberCountries(java.util.Collection