/**
* 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 MediaPackage
{
namespace Model
{
/**
* A new Channel configuration.See Also:
AWS
* API Reference
*/
class CreateChannelRequest : public MediaPackageRequest
{
public:
AWS_MEDIAPACKAGE_API CreateChannelRequest();
// 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 "CreateChannel"; }
AWS_MEDIAPACKAGE_API Aws::String SerializePayload() const override;
/**
* A short text description of the Channel.
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* A short text description of the Channel.
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* A short text description of the Channel.
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* A short text description of the Channel.
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* A short text description of the Channel.
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* A short text description of the Channel.
*/
inline CreateChannelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* A short text description of the Channel.
*/
inline CreateChannelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* A short text description of the Channel.
*/
inline CreateChannelRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* The ID of the Channel. The ID must be unique within the region and it
cannot be
* changed after a Channel is created.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the Channel. The ID must be unique within the region and it
cannot be
* changed after a Channel is created.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The ID of the Channel. The ID must be unique within the region and it
cannot be
* changed after a Channel is created.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The ID of the Channel. The ID must be unique within the region and it
cannot be
* changed after a Channel is created.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The ID of the Channel. The ID must be unique within the region and it
cannot be
* changed after a Channel is created.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The ID of the Channel. The ID must be unique within the region and it
cannot be
* changed after a Channel is created.
*/
inline CreateChannelRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the Channel. The ID must be unique within the region and it
cannot be
* changed after a Channel is created.
*/
inline CreateChannelRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the Channel. The ID must be unique within the region and it
cannot be
* changed after a Channel is created.
*/
inline CreateChannelRequest& WithId(const char* value) { SetId(value); return *this;}
inline const Aws::Map& GetTags() const{ return m_tags; }
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; }
inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
inline CreateChannelRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;}
inline CreateChannelRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;}
inline CreateChannelRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
inline CreateChannelRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
inline CreateChannelRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
inline CreateChannelRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
inline CreateChannelRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
inline CreateChannelRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
inline CreateChannelRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_description;
bool m_descriptionHasBeenSet = false;
Aws::String m_id;
bool m_idHasBeenSet = false;
Aws::Map m_tags;
bool m_tagsHasBeenSet = false;
};
} // namespace Model
} // namespace MediaPackage
} // namespace Aws