/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace MediaStore { namespace Model { /** */ class CreateContainerRequest : public MediaStoreRequest { public: AWS_MEDIASTORE_API CreateContainerRequest(); // 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 "CreateContainer"; } AWS_MEDIASTORE_API Aws::String SerializePayload() const override; AWS_MEDIASTORE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name for the container. The name must be from 1 to 255 characters. * Container names must be unique to your AWS account within a specific region. As * an example, you could create a container named movies in every * region, as long as you don’t have an existing container with that name.

*/ inline const Aws::String& GetContainerName() const{ return m_containerName; } /** *

The name for the container. The name must be from 1 to 255 characters. * Container names must be unique to your AWS account within a specific region. As * an example, you could create a container named movies in every * region, as long as you don’t have an existing container with that name.

*/ inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; } /** *

The name for the container. The name must be from 1 to 255 characters. * Container names must be unique to your AWS account within a specific region. As * an example, you could create a container named movies in every * region, as long as you don’t have an existing container with that name.

*/ inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; } /** *

The name for the container. The name must be from 1 to 255 characters. * Container names must be unique to your AWS account within a specific region. As * an example, you could create a container named movies in every * region, as long as you don’t have an existing container with that name.

*/ inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); } /** *

The name for the container. The name must be from 1 to 255 characters. * Container names must be unique to your AWS account within a specific region. As * an example, you could create a container named movies in every * region, as long as you don’t have an existing container with that name.

*/ inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); } /** *

The name for the container. The name must be from 1 to 255 characters. * Container names must be unique to your AWS account within a specific region. As * an example, you could create a container named movies in every * region, as long as you don’t have an existing container with that name.

*/ inline CreateContainerRequest& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;} /** *

The name for the container. The name must be from 1 to 255 characters. * Container names must be unique to your AWS account within a specific region. As * an example, you could create a container named movies in every * region, as long as you don’t have an existing container with that name.

*/ inline CreateContainerRequest& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;} /** *

The name for the container. The name must be from 1 to 255 characters. * Container names must be unique to your AWS account within a specific region. As * an example, you could create a container named movies in every * region, as long as you don’t have an existing container with that name.

*/ inline CreateContainerRequest& WithContainerName(const char* value) { SetContainerName(value); return *this;} /** *

An array of key:value pairs that you define. These values can be anything * that you want. Typically, the tag key represents a category (such as * "environment") and the tag value represents a specific value within that * category (such as "test," "development," or "production"). You can add up to 50 * tags to each container. For more information about tagging, including naming and * usage conventions, see Tagging * Resources in MediaStore.

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

An array of key:value pairs that you define. These values can be anything * that you want. Typically, the tag key represents a category (such as * "environment") and the tag value represents a specific value within that * category (such as "test," "development," or "production"). You can add up to 50 * tags to each container. For more information about tagging, including naming and * usage conventions, see Tagging * Resources in MediaStore.

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

An array of key:value pairs that you define. These values can be anything * that you want. Typically, the tag key represents a category (such as * "environment") and the tag value represents a specific value within that * category (such as "test," "development," or "production"). You can add up to 50 * tags to each container. For more information about tagging, including naming and * usage conventions, see Tagging * Resources in MediaStore.

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

An array of key:value pairs that you define. These values can be anything * that you want. Typically, the tag key represents a category (such as * "environment") and the tag value represents a specific value within that * category (such as "test," "development," or "production"). You can add up to 50 * tags to each container. For more information about tagging, including naming and * usage conventions, see Tagging * Resources in MediaStore.

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

An array of key:value pairs that you define. These values can be anything * that you want. Typically, the tag key represents a category (such as * "environment") and the tag value represents a specific value within that * category (such as "test," "development," or "production"). You can add up to 50 * tags to each container. For more information about tagging, including naming and * usage conventions, see Tagging * Resources in MediaStore.

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

An array of key:value pairs that you define. These values can be anything * that you want. Typically, the tag key represents a category (such as * "environment") and the tag value represents a specific value within that * category (such as "test," "development," or "production"). You can add up to 50 * tags to each container. For more information about tagging, including naming and * usage conventions, see Tagging * Resources in MediaStore.

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

An array of key:value pairs that you define. These values can be anything * that you want. Typically, the tag key represents a category (such as * "environment") and the tag value represents a specific value within that * category (such as "test," "development," or "production"). You can add up to 50 * tags to each container. For more information about tagging, including naming and * usage conventions, see Tagging * Resources in MediaStore.

*/ inline CreateContainerRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

An array of key:value pairs that you define. These values can be anything * that you want. Typically, the tag key represents a category (such as * "environment") and the tag value represents a specific value within that * category (such as "test," "development," or "production"). You can add up to 50 * tags to each container. For more information about tagging, including naming and * usage conventions, see Tagging * Resources in MediaStore.

*/ inline CreateContainerRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_containerName; bool m_containerNameHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace MediaStore } // namespace Aws