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

Summary information about a channel.

See Also:

AWS * API Reference

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

Channel ARN.

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

Channel ARN.

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

Channel ARN.

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

Channel ARN.

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

Channel ARN.

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

Channel ARN.

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

Channel ARN.

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

Channel ARN.

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

Channel name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

Channel name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

Channel name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

Channel name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

Channel name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

Channel name.

*/ inline ChannelSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

Channel name.

*/ inline ChannelSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

Channel name.

*/ inline ChannelSummary& WithName(const char* value) { SetName(value); return *this;} /** *

Channel latency mode. Default: LOW.

*/ inline const ChannelLatencyMode& GetLatencyMode() const{ return m_latencyMode; } /** *

Channel latency mode. Default: LOW.

*/ inline bool LatencyModeHasBeenSet() const { return m_latencyModeHasBeenSet; } /** *

Channel latency mode. Default: LOW.

*/ inline void SetLatencyMode(const ChannelLatencyMode& value) { m_latencyModeHasBeenSet = true; m_latencyMode = value; } /** *

Channel latency mode. Default: LOW.

*/ inline void SetLatencyMode(ChannelLatencyMode&& value) { m_latencyModeHasBeenSet = true; m_latencyMode = std::move(value); } /** *

Channel latency mode. Default: LOW.

*/ inline ChannelSummary& WithLatencyMode(const ChannelLatencyMode& value) { SetLatencyMode(value); return *this;} /** *

Channel latency mode. Default: LOW.

*/ inline ChannelSummary& WithLatencyMode(ChannelLatencyMode&& value) { SetLatencyMode(std::move(value)); return *this;} /** *

Whether the channel is authorized.

*/ inline bool GetAuthorized() const{ return m_authorized; } /** *

Whether the channel is authorized.

*/ inline bool AuthorizedHasBeenSet() const { return m_authorizedHasBeenSet; } /** *

Whether the channel is authorized.

*/ inline void SetAuthorized(bool value) { m_authorizedHasBeenSet = true; m_authorized = value; } /** *

Whether the channel is authorized.

*/ inline ChannelSummary& WithAuthorized(bool value) { SetAuthorized(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 ChannelSummary& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

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

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

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

*/ inline ChannelSummary& 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 ChannelSummary& 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 ChannelSummary& 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 ChannelSummary& 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 ChannelSummary& 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 ChannelSummary& 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 ChannelSummary& 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_name; bool m_nameHasBeenSet; ChannelLatencyMode m_latencyMode; bool m_latencyModeHasBeenSet; bool m_authorized; bool m_authorizedHasBeenSet; Aws::Map m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace IVS } // namespace Aws