
com.amazonaws.services.alexaforbusiness.model.CreateConferenceProviderRequest Maven / Gradle / Ivy
/*
* Copyright 2014-2019 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.alexaforbusiness.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 CreateConferenceProviderRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The name of the conference provider.
*
*/
private String conferenceProviderName;
/**
*
* Represents a type within a list of predefined types.
*
*/
private String conferenceProviderType;
/**
*
* The IP endpoint and protocol for calling.
*
*/
private IPDialIn iPDialIn;
/**
*
* The information for PSTN conferencing.
*
*/
private PSTNDialIn pSTNDialIn;
/**
*
* The meeting settings for the conference provider.
*
*/
private MeetingSetting meetingSetting;
/**
*
* The request token of the client.
*
*/
private String clientRequestToken;
/**
*
* The name of the conference provider.
*
*
* @param conferenceProviderName
* The name of the conference provider.
*/
public void setConferenceProviderName(String conferenceProviderName) {
this.conferenceProviderName = conferenceProviderName;
}
/**
*
* The name of the conference provider.
*
*
* @return The name of the conference provider.
*/
public String getConferenceProviderName() {
return this.conferenceProviderName;
}
/**
*
* The name of the conference provider.
*
*
* @param conferenceProviderName
* The name of the conference provider.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateConferenceProviderRequest withConferenceProviderName(String conferenceProviderName) {
setConferenceProviderName(conferenceProviderName);
return this;
}
/**
*
* Represents a type within a list of predefined types.
*
*
* @param conferenceProviderType
* Represents a type within a list of predefined types.
* @see ConferenceProviderType
*/
public void setConferenceProviderType(String conferenceProviderType) {
this.conferenceProviderType = conferenceProviderType;
}
/**
*
* Represents a type within a list of predefined types.
*
*
* @return Represents a type within a list of predefined types.
* @see ConferenceProviderType
*/
public String getConferenceProviderType() {
return this.conferenceProviderType;
}
/**
*
* Represents a type within a list of predefined types.
*
*
* @param conferenceProviderType
* Represents a type within a list of predefined types.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConferenceProviderType
*/
public CreateConferenceProviderRequest withConferenceProviderType(String conferenceProviderType) {
setConferenceProviderType(conferenceProviderType);
return this;
}
/**
*
* Represents a type within a list of predefined types.
*
*
* @param conferenceProviderType
* Represents a type within a list of predefined types.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConferenceProviderType
*/
public CreateConferenceProviderRequest withConferenceProviderType(ConferenceProviderType conferenceProviderType) {
this.conferenceProviderType = conferenceProviderType.toString();
return this;
}
/**
*
* The IP endpoint and protocol for calling.
*
*
* @param iPDialIn
* The IP endpoint and protocol for calling.
*/
public void setIPDialIn(IPDialIn iPDialIn) {
this.iPDialIn = iPDialIn;
}
/**
*
* The IP endpoint and protocol for calling.
*
*
* @return The IP endpoint and protocol for calling.
*/
public IPDialIn getIPDialIn() {
return this.iPDialIn;
}
/**
*
* The IP endpoint and protocol for calling.
*
*
* @param iPDialIn
* The IP endpoint and protocol for calling.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateConferenceProviderRequest withIPDialIn(IPDialIn iPDialIn) {
setIPDialIn(iPDialIn);
return this;
}
/**
*
* The information for PSTN conferencing.
*
*
* @param pSTNDialIn
* The information for PSTN conferencing.
*/
public void setPSTNDialIn(PSTNDialIn pSTNDialIn) {
this.pSTNDialIn = pSTNDialIn;
}
/**
*
* The information for PSTN conferencing.
*
*
* @return The information for PSTN conferencing.
*/
public PSTNDialIn getPSTNDialIn() {
return this.pSTNDialIn;
}
/**
*
* The information for PSTN conferencing.
*
*
* @param pSTNDialIn
* The information for PSTN conferencing.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateConferenceProviderRequest withPSTNDialIn(PSTNDialIn pSTNDialIn) {
setPSTNDialIn(pSTNDialIn);
return this;
}
/**
*
* The meeting settings for the conference provider.
*
*
* @param meetingSetting
* The meeting settings for the conference provider.
*/
public void setMeetingSetting(MeetingSetting meetingSetting) {
this.meetingSetting = meetingSetting;
}
/**
*
* The meeting settings for the conference provider.
*
*
* @return The meeting settings for the conference provider.
*/
public MeetingSetting getMeetingSetting() {
return this.meetingSetting;
}
/**
*
* The meeting settings for the conference provider.
*
*
* @param meetingSetting
* The meeting settings for the conference provider.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateConferenceProviderRequest withMeetingSetting(MeetingSetting meetingSetting) {
setMeetingSetting(meetingSetting);
return this;
}
/**
*
* The request token of the client.
*
*
* @param clientRequestToken
* The request token of the client.
*/
public void setClientRequestToken(String clientRequestToken) {
this.clientRequestToken = clientRequestToken;
}
/**
*
* The request token of the client.
*
*
* @return The request token of the client.
*/
public String getClientRequestToken() {
return this.clientRequestToken;
}
/**
*
* The request token of the client.
*
*
* @param clientRequestToken
* The request token of the client.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateConferenceProviderRequest withClientRequestToken(String clientRequestToken) {
setClientRequestToken(clientRequestToken);
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 (getConferenceProviderName() != null)
sb.append("ConferenceProviderName: ").append(getConferenceProviderName()).append(",");
if (getConferenceProviderType() != null)
sb.append("ConferenceProviderType: ").append(getConferenceProviderType()).append(",");
if (getIPDialIn() != null)
sb.append("IPDialIn: ").append(getIPDialIn()).append(",");
if (getPSTNDialIn() != null)
sb.append("PSTNDialIn: ").append(getPSTNDialIn()).append(",");
if (getMeetingSetting() != null)
sb.append("MeetingSetting: ").append(getMeetingSetting()).append(",");
if (getClientRequestToken() != null)
sb.append("ClientRequestToken: ").append(getClientRequestToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateConferenceProviderRequest == false)
return false;
CreateConferenceProviderRequest other = (CreateConferenceProviderRequest) obj;
if (other.getConferenceProviderName() == null ^ this.getConferenceProviderName() == null)
return false;
if (other.getConferenceProviderName() != null && other.getConferenceProviderName().equals(this.getConferenceProviderName()) == false)
return false;
if (other.getConferenceProviderType() == null ^ this.getConferenceProviderType() == null)
return false;
if (other.getConferenceProviderType() != null && other.getConferenceProviderType().equals(this.getConferenceProviderType()) == false)
return false;
if (other.getIPDialIn() == null ^ this.getIPDialIn() == null)
return false;
if (other.getIPDialIn() != null && other.getIPDialIn().equals(this.getIPDialIn()) == false)
return false;
if (other.getPSTNDialIn() == null ^ this.getPSTNDialIn() == null)
return false;
if (other.getPSTNDialIn() != null && other.getPSTNDialIn().equals(this.getPSTNDialIn()) == false)
return false;
if (other.getMeetingSetting() == null ^ this.getMeetingSetting() == null)
return false;
if (other.getMeetingSetting() != null && other.getMeetingSetting().equals(this.getMeetingSetting()) == false)
return false;
if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null)
return false;
if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getConferenceProviderName() == null) ? 0 : getConferenceProviderName().hashCode());
hashCode = prime * hashCode + ((getConferenceProviderType() == null) ? 0 : getConferenceProviderType().hashCode());
hashCode = prime * hashCode + ((getIPDialIn() == null) ? 0 : getIPDialIn().hashCode());
hashCode = prime * hashCode + ((getPSTNDialIn() == null) ? 0 : getPSTNDialIn().hashCode());
hashCode = prime * hashCode + ((getMeetingSetting() == null) ? 0 : getMeetingSetting().hashCode());
hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode());
return hashCode;
}
@Override
public CreateConferenceProviderRequest clone() {
return (CreateConferenceProviderRequest) super.clone();
}
}