/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace mediapackagev2 { namespace Model { class CreateChannelResult { public: AWS_MEDIAPACKAGEV2_API CreateChannelResult(); AWS_MEDIAPACKAGEV2_API CreateChannelResult(const Aws::AmazonWebServiceResult& result); AWS_MEDIAPACKAGEV2_API CreateChannelResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) associated with the resource.

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

The Amazon Resource Name (ARN) associated with the resource.

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

The Amazon Resource Name (ARN) associated with the resource.

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

The Amazon Resource Name (ARN) associated with the resource.

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

The Amazon Resource Name (ARN) associated with the resource.

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

The Amazon Resource Name (ARN) associated with the resource.

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

The Amazon Resource Name (ARN) associated with the resource.

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

The name that describes the channel. The name is the primary identifier for * the channel, and must be unique for your account in the AWS Region and channel * group.

*/ inline const Aws::String& GetChannelName() const{ return m_channelName; } /** *

The name that describes the channel. The name is the primary identifier for * the channel, and must be unique for your account in the AWS Region and channel * group.

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

The name that describes the channel. The name is the primary identifier for * the channel, and must be unique for your account in the AWS Region and channel * group.

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

The name that describes the channel. The name is the primary identifier for * the channel, and must be unique for your account in the AWS Region and channel * group.

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

The name that describes the channel. The name is the primary identifier for * the channel, and must be unique for your account in the AWS Region and channel * group.

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

The name that describes the channel. The name is the primary identifier for * the channel, and must be unique for your account in the AWS Region and channel * group.

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

The name that describes the channel. The name is the primary identifier for * the channel, and must be unique for your account in the AWS Region and channel * group.

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

The name that describes the channel group. The name is the primary identifier * for the channel group, and must be unique for your account in the AWS * Region.

*/ inline const Aws::String& GetChannelGroupName() const{ return m_channelGroupName; } /** *

The name that describes the channel group. The name is the primary identifier * for the channel group, and must be unique for your account in the AWS * Region.

*/ inline void SetChannelGroupName(const Aws::String& value) { m_channelGroupName = value; } /** *

The name that describes the channel group. The name is the primary identifier * for the channel group, and must be unique for your account in the AWS * Region.

*/ inline void SetChannelGroupName(Aws::String&& value) { m_channelGroupName = std::move(value); } /** *

The name that describes the channel group. The name is the primary identifier * for the channel group, and must be unique for your account in the AWS * Region.

*/ inline void SetChannelGroupName(const char* value) { m_channelGroupName.assign(value); } /** *

The name that describes the channel group. The name is the primary identifier * for the channel group, and must be unique for your account in the AWS * Region.

*/ inline CreateChannelResult& WithChannelGroupName(const Aws::String& value) { SetChannelGroupName(value); return *this;} /** *

The name that describes the channel group. The name is the primary identifier * for the channel group, and must be unique for your account in the AWS * Region.

*/ inline CreateChannelResult& WithChannelGroupName(Aws::String&& value) { SetChannelGroupName(std::move(value)); return *this;} /** *

The name that describes the channel group. The name is the primary identifier * for the channel group, and must be unique for your account in the AWS * Region.

*/ inline CreateChannelResult& WithChannelGroupName(const char* value) { SetChannelGroupName(value); return *this;} /** *

The date and time the channel was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The date and time the channel was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } /** *

The date and time the channel was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } /** *

The date and time the channel was created.

*/ inline CreateChannelResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The date and time the channel was created.

*/ inline CreateChannelResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The date and time the channel was modified.

*/ inline const Aws::Utils::DateTime& GetModifiedAt() const{ return m_modifiedAt; } /** *

The date and time the channel was modified.

*/ inline void SetModifiedAt(const Aws::Utils::DateTime& value) { m_modifiedAt = value; } /** *

The date and time the channel was modified.

*/ inline void SetModifiedAt(Aws::Utils::DateTime&& value) { m_modifiedAt = std::move(value); } /** *

The date and time the channel was modified.

*/ inline CreateChannelResult& WithModifiedAt(const Aws::Utils::DateTime& value) { SetModifiedAt(value); return *this;} /** *

The date and time the channel was modified.

*/ inline CreateChannelResult& WithModifiedAt(Aws::Utils::DateTime&& value) { SetModifiedAt(std::move(value)); return *this;} /** *

The description for your channel.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description for your channel.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

The description for your channel.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

The description for your channel.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description for your channel.

*/ inline CreateChannelResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description for your channel.

*/ inline CreateChannelResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description for your channel.

*/ inline CreateChannelResult& WithDescription(const char* value) { SetDescription(value); return *this;} inline const Aws::Vector& GetIngestEndpoints() const{ return m_ingestEndpoints; } inline void SetIngestEndpoints(const Aws::Vector& value) { m_ingestEndpoints = value; } inline void SetIngestEndpoints(Aws::Vector&& value) { m_ingestEndpoints = std::move(value); } inline CreateChannelResult& WithIngestEndpoints(const Aws::Vector& value) { SetIngestEndpoints(value); return *this;} inline CreateChannelResult& WithIngestEndpoints(Aws::Vector&& value) { SetIngestEndpoints(std::move(value)); return *this;} inline CreateChannelResult& AddIngestEndpoints(const IngestEndpoint& value) { m_ingestEndpoints.push_back(value); return *this; } inline CreateChannelResult& AddIngestEndpoints(IngestEndpoint&& value) { m_ingestEndpoints.push_back(std::move(value)); return *this; } /** *

The comma-separated list of tag key:value pairs assigned to the channel.

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

The comma-separated list of tag key:value pairs assigned to the channel.

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

The comma-separated list of tag key:value pairs assigned to the channel.

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

The comma-separated list of tag key:value pairs assigned to the channel.

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

The comma-separated list of tag key:value pairs assigned to the channel.

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

The comma-separated list of tag key:value pairs assigned to the channel.

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

The comma-separated list of tag key:value pairs assigned to the channel.

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

The comma-separated list of tag key:value pairs assigned to the channel.

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

The comma-separated list of tag key:value pairs assigned to the channel.

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

The comma-separated list of tag key:value pairs assigned to the channel.

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

The comma-separated list of tag key:value pairs assigned to the channel.

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

The comma-separated list of tag key:value pairs assigned to the channel.

*/ inline CreateChannelResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateChannelResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateChannelResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateChannelResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; Aws::String m_channelName; Aws::String m_channelGroupName; Aws::Utils::DateTime m_createdAt; Aws::Utils::DateTime m_modifiedAt; Aws::String m_description; Aws::Vector m_ingestEndpoints; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace mediapackagev2 } // namespace Aws