/* * Copyright 2010-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 com.amazonaws.AmazonWebServiceRequest; /** *
* Creates a signaling channel. *
*
* CreateSignalingChannel
is an asynchronous operation.
*
* 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. *
*
* Constraints:
* Length: 1 - 256
* Pattern: [a-zA-Z0-9_.-]+
*/
private String channelName;
/**
*
* A type of the signaling channel that you are creating. Currently,
* SINGLE_MASTER
is the only supported channel type.
*
* Constraints:
* Allowed Values: SINGLE_MASTER, FULL_MESH
*/
private String channelType;
/**
*
* 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. *
*
* Constraints:
* Length: 1 - 256
* Pattern: [a-zA-Z0-9_.-]+
*
* @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 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. *
*
* Constraints:
* Length: 1 - 256
* Pattern: [a-zA-Z0-9_.-]+
*
* @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. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 256
* Pattern: [a-zA-Z0-9_.-]+
*
* @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 A reference to this updated object so that method calls can be * chained together. */ public CreateSignalingChannelRequest withChannelName(String channelName) { this.channelName = channelName; return this; } /** *
* A type of the signaling channel that you are creating. Currently,
* SINGLE_MASTER
is the only supported channel type.
*
* Constraints:
* Allowed Values: SINGLE_MASTER, FULL_MESH
*
* @return
* A type of the signaling channel that you are creating. Currently,
* SINGLE_MASTER
is the only supported channel type.
*
* A type of the signaling channel that you are creating. Currently,
* SINGLE_MASTER
is the only supported channel type.
*
* Constraints:
* Allowed Values: SINGLE_MASTER, FULL_MESH
*
* @param channelType
* A type of the signaling channel that you are creating.
* Currently, SINGLE_MASTER
is the only supported
* channel type.
*
* A type of the signaling channel that you are creating. Currently,
* SINGLE_MASTER
is the only supported channel type.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: SINGLE_MASTER, FULL_MESH
*
* @param channelType
* A type of the signaling channel that you are creating.
* Currently, SINGLE_MASTER
is the only supported
* channel type.
*
* A type of the signaling channel that you are creating. Currently,
* SINGLE_MASTER
is the only supported channel type.
*
* Constraints:
* Allowed Values: SINGLE_MASTER, FULL_MESH
*
* @param channelType
* A type of the signaling channel that you are creating.
* Currently, SINGLE_MASTER
is the only supported
* channel type.
*
* A type of the signaling channel that you are creating. Currently,
* SINGLE_MASTER
is the only supported channel type.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: SINGLE_MASTER, FULL_MESH
*
* @param channelType
* 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 structure containing the configuration for the
* SINGLE_MASTER
channel type.
*
* A structure containing the configuration for the
* SINGLE_MASTER
channel type.
*
* A structure containing the configuration for the
* SINGLE_MASTER
channel type.
*
* A structure containing the configuration for the
* SINGLE_MASTER
channel type.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param singleMasterConfiguration
* 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. *
* * @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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param tags
* A set of tags (key-value pairs) that you want to associate * with this channel. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateSignalingChannelRequest withTags(Tag... tags) { if (getTags() == null) { this.tags = new java.util.ArrayList* A set of tags (key-value pairs) that you want to associate with this * channel. *
** Returns a reference to this object so that method calls can be chained * together. * * @param tags
* A set of tags (key-value pairs) that you want to associate * with this channel. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateSignalingChannelRequest withTags(java.util.Collection