/* * 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.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateMeetingRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The unique identifier for the client request. Use a different token for different meetings. *
*/ private String clientRequestToken; /** ** The external meeting ID. *
*/ private String externalMeetingId; /** ** Reserved. *
*/ private String meetingHostId; /** *
* The Region in which to create the meeting. Default: us-east-1
.
*
* Available values: af-south-1
, ap-northeast-1
, ap-northeast-2
,
* ap-south-1
, ap-southeast-1
, ap-southeast-2
, ca-central-1
,
* eu-central-1
, eu-north-1
, eu-south-1
, eu-west-1
,
* eu-west-2
, eu-west-3
, sa-east-1
, us-east-1
,
* us-east-2
, us-west-1
, us-west-2
.
*
* The tag key-value pairs. *
*/ private java.util.List* The configuration for resource targets to receive notifications when meeting and attendee events occur. *
*/ private MeetingNotificationConfiguration notificationsConfiguration; /** ** The unique identifier for the client request. Use a different token for different meetings. *
* * @param clientRequestToken * The unique identifier for the client request. Use a different token for different meetings. */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** ** The unique identifier for the client request. Use a different token for different meetings. *
* * @return The unique identifier for the client request. Use a different token for different meetings. */ public String getClientRequestToken() { return this.clientRequestToken; } /** ** The unique identifier for the client request. Use a different token for different meetings. *
* * @param clientRequestToken * The unique identifier for the client request. Use a different token for different meetings. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMeetingRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** ** The external meeting ID. *
* * @param externalMeetingId * The external meeting ID. */ public void setExternalMeetingId(String externalMeetingId) { this.externalMeetingId = externalMeetingId; } /** ** The external meeting ID. *
* * @return The external meeting ID. */ public String getExternalMeetingId() { return this.externalMeetingId; } /** ** The external meeting ID. *
* * @param externalMeetingId * The external meeting ID. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMeetingRequest withExternalMeetingId(String externalMeetingId) { setExternalMeetingId(externalMeetingId); return this; } /** ** Reserved. *
* * @param meetingHostId * Reserved. */ public void setMeetingHostId(String meetingHostId) { this.meetingHostId = meetingHostId; } /** ** Reserved. *
* * @return Reserved. */ public String getMeetingHostId() { return this.meetingHostId; } /** ** Reserved. *
* * @param meetingHostId * Reserved. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMeetingRequest withMeetingHostId(String meetingHostId) { setMeetingHostId(meetingHostId); return this; } /** *
* The Region in which to create the meeting. Default: us-east-1
.
*
* Available values: af-south-1
, ap-northeast-1
, ap-northeast-2
,
* ap-south-1
, ap-southeast-1
, ap-southeast-2
, ca-central-1
,
* eu-central-1
, eu-north-1
, eu-south-1
, eu-west-1
,
* eu-west-2
, eu-west-3
, sa-east-1
, us-east-1
,
* us-east-2
, us-west-1
, us-west-2
.
*
us-east-1
.
*
* Available values: af-south-1
, ap-northeast-1
, ap-northeast-2
,
* ap-south-1
, ap-southeast-1
, ap-southeast-2
,
* ca-central-1
, eu-central-1
, eu-north-1
, eu-south-1
* , eu-west-1
, eu-west-2
, eu-west-3
, sa-east-1
,
* us-east-1
, us-east-2
, us-west-1
, us-west-2
.
*/
public void setMediaRegion(String mediaRegion) {
this.mediaRegion = mediaRegion;
}
/**
*
* The Region in which to create the meeting. Default: us-east-1
.
*
* Available values: af-south-1
, ap-northeast-1
, ap-northeast-2
,
* ap-south-1
, ap-southeast-1
, ap-southeast-2
, ca-central-1
,
* eu-central-1
, eu-north-1
, eu-south-1
, eu-west-1
,
* eu-west-2
, eu-west-3
, sa-east-1
, us-east-1
,
* us-east-2
, us-west-1
, us-west-2
.
*
us-east-1
.
*
* Available values: af-south-1
, ap-northeast-1
, ap-northeast-2
,
* ap-south-1
, ap-southeast-1
, ap-southeast-2
,
* ca-central-1
, eu-central-1
, eu-north-1
, eu-south-1
* , eu-west-1
, eu-west-2
, eu-west-3
, sa-east-1
,
* us-east-1
, us-east-2
, us-west-1
, us-west-2
.
*/
public String getMediaRegion() {
return this.mediaRegion;
}
/**
*
* The Region in which to create the meeting. Default: us-east-1
.
*
* Available values: af-south-1
, ap-northeast-1
, ap-northeast-2
,
* ap-south-1
, ap-southeast-1
, ap-southeast-2
, ca-central-1
,
* eu-central-1
, eu-north-1
, eu-south-1
, eu-west-1
,
* eu-west-2
, eu-west-3
, sa-east-1
, us-east-1
,
* us-east-2
, us-west-1
, us-west-2
.
*
us-east-1
.
*
* Available values: af-south-1
, ap-northeast-1
, ap-northeast-2
,
* ap-south-1
, ap-southeast-1
, ap-southeast-2
,
* ca-central-1
, eu-central-1
, eu-north-1
, eu-south-1
* , eu-west-1
, eu-west-2
, eu-west-3
, sa-east-1
,
* us-east-1
, us-east-2
, us-west-1
, us-west-2
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMeetingRequest withMediaRegion(String mediaRegion) {
setMediaRegion(mediaRegion);
return this;
}
/**
*
* The tag key-value pairs. *
* * @return The tag key-value pairs. */ public java.util.List* The tag key-value pairs. *
* * @param tags * The tag key-value pairs. */ public void setTags(java.util.Collection* The tag key-value pairs. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * The tag key-value pairs. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMeetingRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* The tag key-value pairs. *
* * @param tags * The tag key-value pairs. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMeetingRequest withTags(java.util.Collection* The configuration for resource targets to receive notifications when meeting and attendee events occur. *
* * @param notificationsConfiguration * The configuration for resource targets to receive notifications when meeting and attendee events occur. */ public void setNotificationsConfiguration(MeetingNotificationConfiguration notificationsConfiguration) { this.notificationsConfiguration = notificationsConfiguration; } /** ** The configuration for resource targets to receive notifications when meeting and attendee events occur. *
* * @return The configuration for resource targets to receive notifications when meeting and attendee events occur. */ public MeetingNotificationConfiguration getNotificationsConfiguration() { return this.notificationsConfiguration; } /** ** The configuration for resource targets to receive notifications when meeting and attendee events occur. *
* * @param notificationsConfiguration * The configuration for resource targets to receive notifications when meeting and attendee events occur. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMeetingRequest withNotificationsConfiguration(MeetingNotificationConfiguration notificationsConfiguration) { setNotificationsConfiguration(notificationsConfiguration); 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 (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append("***Sensitive Data Redacted***").append(","); if (getExternalMeetingId() != null) sb.append("ExternalMeetingId: ").append("***Sensitive Data Redacted***").append(","); if (getMeetingHostId() != null) sb.append("MeetingHostId: ").append("***Sensitive Data Redacted***").append(","); if (getMediaRegion() != null) sb.append("MediaRegion: ").append(getMediaRegion()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getNotificationsConfiguration() != null) sb.append("NotificationsConfiguration: ").append(getNotificationsConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateMeetingRequest == false) return false; CreateMeetingRequest other = (CreateMeetingRequest) obj; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; if (other.getExternalMeetingId() == null ^ this.getExternalMeetingId() == null) return false; if (other.getExternalMeetingId() != null && other.getExternalMeetingId().equals(this.getExternalMeetingId()) == false) return false; if (other.getMeetingHostId() == null ^ this.getMeetingHostId() == null) return false; if (other.getMeetingHostId() != null && other.getMeetingHostId().equals(this.getMeetingHostId()) == false) return false; if (other.getMediaRegion() == null ^ this.getMediaRegion() == null) return false; if (other.getMediaRegion() != null && other.getMediaRegion().equals(this.getMediaRegion()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getNotificationsConfiguration() == null ^ this.getNotificationsConfiguration() == null) return false; if (other.getNotificationsConfiguration() != null && other.getNotificationsConfiguration().equals(this.getNotificationsConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); hashCode = prime * hashCode + ((getExternalMeetingId() == null) ? 0 : getExternalMeetingId().hashCode()); hashCode = prime * hashCode + ((getMeetingHostId() == null) ? 0 : getMeetingHostId().hashCode()); hashCode = prime * hashCode + ((getMediaRegion() == null) ? 0 : getMediaRegion().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getNotificationsConfiguration() == null) ? 0 : getNotificationsConfiguration().hashCode()); return hashCode; } @Override public CreateMeetingRequest clone() { return (CreateMeetingRequest) super.clone(); } }