/* * 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.kinesisvideo.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 CreateSignalingChannelRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A name for the signaling channel that you are creating. It must be unique for each Amazon Web Services account * and Amazon Web Services Region. *
*/ private String channelName; /** *
* A type of the signaling channel that you are creating. Currently, SINGLE_MASTER
is the only
* supported channel type.
*
* A structure containing the configuration for the SINGLE_MASTER
channel type.
*
* A set of tags (key-value pairs) that you want to associate with this channel. *
*/ private java.util.List* A name for the signaling channel that you are creating. It must be unique for each Amazon Web Services account * and Amazon Web Services Region. *
* * @param channelName * A name for the signaling channel that you are creating. It must be unique for each Amazon Web Services * account and Amazon Web Services Region. */ public void setChannelName(String channelName) { this.channelName = channelName; } /** ** A name for the signaling channel that you are creating. It must be unique for each Amazon Web Services account * and Amazon Web Services Region. *
* * @return A name for the signaling channel that you are creating. It must be unique for each Amazon Web Services * account and Amazon Web Services Region. */ public String getChannelName() { return this.channelName; } /** ** A name for the signaling channel that you are creating. It must be unique for each Amazon Web Services account * and Amazon Web Services Region. *
* * @param channelName * A name for the signaling channel that you are creating. It must be unique for each Amazon Web Services * account and Amazon Web Services Region. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSignalingChannelRequest withChannelName(String channelName) { setChannelName(channelName); return this; } /** *
* A type of the signaling channel that you are creating. Currently, SINGLE_MASTER
is the only
* supported channel type.
*
SINGLE_MASTER
is the only
* supported channel type.
* @see ChannelType
*/
public void setChannelType(String channelType) {
this.channelType = channelType;
}
/**
*
* A type of the signaling channel that you are creating. Currently, SINGLE_MASTER
is the only
* supported channel type.
*
SINGLE_MASTER
is the only
* supported channel type.
* @see ChannelType
*/
public String getChannelType() {
return this.channelType;
}
/**
*
* A type of the signaling channel that you are creating. Currently, SINGLE_MASTER
is the only
* supported channel type.
*
SINGLE_MASTER
is the only
* supported channel type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ChannelType
*/
public CreateSignalingChannelRequest withChannelType(String channelType) {
setChannelType(channelType);
return this;
}
/**
*
* A type of the signaling channel that you are creating. Currently, SINGLE_MASTER
is the only
* supported channel type.
*
SINGLE_MASTER
is the only
* supported channel type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ChannelType
*/
public CreateSignalingChannelRequest withChannelType(ChannelType channelType) {
this.channelType = channelType.toString();
return this;
}
/**
*
* A structure containing the configuration for the SINGLE_MASTER
channel type.
*
SINGLE_MASTER
channel type.
*/
public void setSingleMasterConfiguration(SingleMasterConfiguration singleMasterConfiguration) {
this.singleMasterConfiguration = singleMasterConfiguration;
}
/**
*
* A structure containing the configuration for the SINGLE_MASTER
channel type.
*
SINGLE_MASTER
channel type.
*/
public SingleMasterConfiguration getSingleMasterConfiguration() {
return this.singleMasterConfiguration;
}
/**
*
* A structure containing the configuration for the SINGLE_MASTER
channel type.
*
SINGLE_MASTER
channel type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateSignalingChannelRequest withSingleMasterConfiguration(SingleMasterConfiguration singleMasterConfiguration) {
setSingleMasterConfiguration(singleMasterConfiguration);
return this;
}
/**
* * A set of tags (key-value pairs) that you want to associate with this channel. *
* * @return A set of tags (key-value pairs) that you want to associate with this channel. */ public java.util.List* A set of tags (key-value pairs) that you want to associate with this channel. *
* * @param tags * A set of tags (key-value pairs) that you want to associate with this channel. */ public void setTags(java.util.Collection* A set of tags (key-value pairs) that you want to associate with this channel. *
** 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 * A set of tags (key-value pairs) that you want to associate with this channel. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSignalingChannelRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A set of tags (key-value pairs) that you want to associate with this channel. *
* * @param tags * A set of tags (key-value pairs) that you want to associate with this channel. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSignalingChannelRequest withTags(java.util.Collection