/** * 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 AWS_IVS_API StreamKey { public: StreamKey(); StreamKey(Aws::Utils::Json::JsonView jsonValue); StreamKey& operator=(Aws::Utils::Json::JsonView jsonValue); 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;} /** *

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;} /** *

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;} /** *

Array of 1-50 maps, each of the form string:string * (key:value).

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

Array of 1-50 maps, each of the form string:string * (key:value).

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

Array of 1-50 maps, each of the form string:string * (key:value).

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

Array of 1-50 maps, each of the form string:string * (key:value).

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

Array of 1-50 maps, each of the form string:string * (key:value).

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

Array of 1-50 maps, each of the form string:string * (key:value).

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

Array of 1-50 maps, each of the form string:string * (key:value).

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

Array of 1-50 maps, each of the form string:string * (key:value).

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

Array of 1-50 maps, each of the form string:string * (key:value).

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

Array of 1-50 maps, each of the form string:string * (key:value).

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

Array of 1-50 maps, each of the form string:string * (key:value).

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

Array of 1-50 maps, each of the form string:string * (key:value).

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

Array of 1-50 maps, each of the form string:string * (key:value).

*/ inline StreamKey& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_arn; bool m_arnHasBeenSet; Aws::String m_value; bool m_valueHasBeenSet; Aws::String m_channelArn; bool m_channelArnHasBeenSet; Aws::Map m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace IVS } // namespace Aws