/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IVS { namespace Model { /** *

Object specifying a stream key.

See Also:

AWS API * Reference

*/ class StreamKey { public: AWS_IVS_API StreamKey(); AWS_IVS_API StreamKey(Aws::Utils::Json::JsonView jsonValue); AWS_IVS_API StreamKey& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Stream-key ARN.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

Stream-key ARN.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

Stream-key ARN.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

Stream-key ARN.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

Stream-key ARN.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

Stream-key ARN.

*/ inline StreamKey& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

Stream-key ARN.

*/ inline StreamKey& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

Stream-key ARN.

*/ inline StreamKey& WithArn(const char* value) { SetArn(value); return *this;} /** *

Channel ARN for the stream.

*/ inline const Aws::String& GetChannelArn() const{ return m_channelArn; } /** *

Channel ARN for the stream.

*/ inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; } /** *

Channel ARN for the stream.

*/ inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; } /** *

Channel ARN for the stream.

*/ inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); } /** *

Channel ARN for the stream.

*/ inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); } /** *

Channel ARN for the stream.

*/ inline StreamKey& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;} /** *

Channel ARN for the stream.

*/ inline StreamKey& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;} /** *

Channel ARN for the stream.

*/ inline StreamKey& WithChannelArn(const char* value) { SetChannelArn(value); return *this;} /** *

Tags attached to the resource. Array of 1-50 maps, each of the form * string:string (key:value). See Tagging * Amazon Web Services Resources for more information, including restrictions * that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no * service-specific constraints beyond what is documented there.

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

Tags attached to the resource. Array of 1-50 maps, each of the form * string:string (key:value). See Tagging * Amazon Web Services Resources for more information, including restrictions * that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no * service-specific constraints beyond what is documented there.

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

Tags attached to the resource. Array of 1-50 maps, each of the form * string:string (key:value). See Tagging * Amazon Web Services Resources for more information, including restrictions * that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no * service-specific constraints beyond what is documented there.

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

Tags attached to the resource. Array of 1-50 maps, each of the form * string:string (key:value). See Tagging * Amazon Web Services Resources for more information, including restrictions * that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no * service-specific constraints beyond what is documented there.

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

Tags attached to the resource. Array of 1-50 maps, each of the form * string:string (key:value). See Tagging * Amazon Web Services Resources for more information, including restrictions * that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no * service-specific constraints beyond what is documented there.

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

Tags attached to the resource. Array of 1-50 maps, each of the form * string:string (key:value). See Tagging * Amazon Web Services Resources for more information, including restrictions * that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no * service-specific constraints beyond what is documented there.

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

Tags attached to the resource. Array of 1-50 maps, each of the form * string:string (key:value). See Tagging * Amazon Web Services Resources for more information, including restrictions * that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no * service-specific constraints beyond what is documented there.

*/ inline StreamKey& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Tags attached to the resource. Array of 1-50 maps, each of the form * string:string (key:value). See Tagging * Amazon Web Services Resources for more information, including restrictions * that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no * service-specific constraints beyond what is documented there.

*/ inline StreamKey& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags attached to the resource. Array of 1-50 maps, each of the form * string:string (key:value). See Tagging * Amazon Web Services Resources for more information, including restrictions * that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no * service-specific constraints beyond what is documented there.

*/ inline StreamKey& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags attached to the resource. Array of 1-50 maps, each of the form * string:string (key:value). See Tagging * Amazon Web Services Resources for more information, including restrictions * that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no * service-specific constraints beyond what is documented there.

*/ inline StreamKey& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Tags attached to the resource. Array of 1-50 maps, each of the form * string:string (key:value). See Tagging * Amazon Web Services Resources for more information, including restrictions * that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no * service-specific constraints beyond what is documented there.

*/ inline StreamKey& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags attached to the resource. Array of 1-50 maps, each of the form * string:string (key:value). See Tagging * Amazon Web Services Resources for more information, including restrictions * that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no * service-specific constraints beyond what is documented there.

*/ inline StreamKey& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags attached to the resource. Array of 1-50 maps, each of the form * string:string (key:value). See Tagging * Amazon Web Services Resources for more information, including restrictions * that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no * service-specific constraints beyond what is documented there.

*/ inline StreamKey& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Stream-key value.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

Stream-key value.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

Stream-key value.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

Stream-key value.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

Stream-key value.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

Stream-key value.

*/ inline StreamKey& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

Stream-key value.

*/ inline StreamKey& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

Stream-key value.

*/ inline StreamKey& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_channelArn; bool m_channelArnHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace IVS } // namespace Aws