/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace KinesisVideo { namespace Model { /** */ class CreateSignalingChannelRequest : public KinesisVideoRequest { public: AWS_KINESISVIDEO_API CreateSignalingChannelRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateSignalingChannel"; } AWS_KINESISVIDEO_API Aws::String SerializePayload() const override; /** *

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.

*/ inline const Aws::String& GetChannelName() const{ return m_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.

*/ inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; } /** *

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.

*/ inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; } /** *

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.

*/ inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); } /** *

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.

*/ inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); } /** *

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.

*/ inline CreateSignalingChannelRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;} /** *

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.

*/ inline CreateSignalingChannelRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;} /** *

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.

*/ inline CreateSignalingChannelRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;} /** *

A type of the signaling channel that you are creating. Currently, * SINGLE_MASTER is the only supported channel type.

*/ inline const ChannelType& GetChannelType() const{ return m_channelType; } /** *

A type of the signaling channel that you are creating. Currently, * SINGLE_MASTER is the only supported channel type.

*/ inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; } /** *

A type of the signaling channel that you are creating. Currently, * SINGLE_MASTER is the only supported channel type.

*/ inline void SetChannelType(const ChannelType& value) { m_channelTypeHasBeenSet = true; m_channelType = value; } /** *

A type of the signaling channel that you are creating. Currently, * SINGLE_MASTER is the only supported channel type.

*/ inline void SetChannelType(ChannelType&& value) { m_channelTypeHasBeenSet = true; m_channelType = std::move(value); } /** *

A type of the signaling channel that you are creating. Currently, * SINGLE_MASTER is the only supported channel type.

*/ inline CreateSignalingChannelRequest& WithChannelType(const ChannelType& value) { SetChannelType(value); return *this;} /** *

A type of the signaling channel that you are creating. Currently, * SINGLE_MASTER is the only supported channel type.

*/ inline CreateSignalingChannelRequest& WithChannelType(ChannelType&& value) { SetChannelType(std::move(value)); return *this;} /** *

A structure containing the configuration for the SINGLE_MASTER * channel type.

*/ inline const SingleMasterConfiguration& GetSingleMasterConfiguration() const{ return m_singleMasterConfiguration; } /** *

A structure containing the configuration for the SINGLE_MASTER * channel type.

*/ inline bool SingleMasterConfigurationHasBeenSet() const { return m_singleMasterConfigurationHasBeenSet; } /** *

A structure containing the configuration for the SINGLE_MASTER * channel type.

*/ inline void SetSingleMasterConfiguration(const SingleMasterConfiguration& value) { m_singleMasterConfigurationHasBeenSet = true; m_singleMasterConfiguration = value; } /** *

A structure containing the configuration for the SINGLE_MASTER * channel type.

*/ inline void SetSingleMasterConfiguration(SingleMasterConfiguration&& value) { m_singleMasterConfigurationHasBeenSet = true; m_singleMasterConfiguration = std::move(value); } /** *

A structure containing the configuration for the SINGLE_MASTER * channel type.

*/ inline CreateSignalingChannelRequest& WithSingleMasterConfiguration(const SingleMasterConfiguration& value) { SetSingleMasterConfiguration(value); return *this;} /** *

A structure containing the configuration for the SINGLE_MASTER * channel type.

*/ inline CreateSignalingChannelRequest& WithSingleMasterConfiguration(SingleMasterConfiguration&& value) { SetSingleMasterConfiguration(std::move(value)); return *this;} /** *

A set of tags (key-value pairs) that you want to associate with this * channel.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A set of tags (key-value pairs) that you want to associate with this * channel.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A set of tags (key-value pairs) that you want to associate with this * channel.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A set of tags (key-value pairs) that you want to associate with this * channel.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A set of tags (key-value pairs) that you want to associate with this * channel.

*/ inline CreateSignalingChannelRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A set of tags (key-value pairs) that you want to associate with this * channel.

*/ inline CreateSignalingChannelRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A set of tags (key-value pairs) that you want to associate with this * channel.

*/ inline CreateSignalingChannelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A set of tags (key-value pairs) that you want to associate with this * channel.

*/ inline CreateSignalingChannelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_channelName; bool m_channelNameHasBeenSet = false; ChannelType m_channelType; bool m_channelTypeHasBeenSet = false; SingleMasterConfiguration m_singleMasterConfiguration; bool m_singleMasterConfigurationHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace KinesisVideo } // namespace Aws