/** * 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 MediaStore { namespace Model { /** *

This section describes operations that you can perform on an AWS Elemental * MediaStore container.

See Also:

AWS * API Reference

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

The DNS endpoint of the container. Use the endpoint to identify the specific * container when sending requests to the data plane. The service assigns this * value when the container is created. Once the value has been assigned, it does * not change.

*/ inline const Aws::String& GetEndpoint() const{ return m_endpoint; } /** *

The DNS endpoint of the container. Use the endpoint to identify the specific * container when sending requests to the data plane. The service assigns this * value when the container is created. Once the value has been assigned, it does * not change.

*/ inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; } /** *

The DNS endpoint of the container. Use the endpoint to identify the specific * container when sending requests to the data plane. The service assigns this * value when the container is created. Once the value has been assigned, it does * not change.

*/ inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; } /** *

The DNS endpoint of the container. Use the endpoint to identify the specific * container when sending requests to the data plane. The service assigns this * value when the container is created. Once the value has been assigned, it does * not change.

*/ inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); } /** *

The DNS endpoint of the container. Use the endpoint to identify the specific * container when sending requests to the data plane. The service assigns this * value when the container is created. Once the value has been assigned, it does * not change.

*/ inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); } /** *

The DNS endpoint of the container. Use the endpoint to identify the specific * container when sending requests to the data plane. The service assigns this * value when the container is created. Once the value has been assigned, it does * not change.

*/ inline Container& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;} /** *

The DNS endpoint of the container. Use the endpoint to identify the specific * container when sending requests to the data plane. The service assigns this * value when the container is created. Once the value has been assigned, it does * not change.

*/ inline Container& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;} /** *

The DNS endpoint of the container. Use the endpoint to identify the specific * container when sending requests to the data plane. The service assigns this * value when the container is created. Once the value has been assigned, it does * not change.

*/ inline Container& WithEndpoint(const char* value) { SetEndpoint(value); return *this;} /** *

Unix timestamp.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

Unix timestamp.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

Unix timestamp.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

Unix timestamp.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

Unix timestamp.

*/ inline Container& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

Unix timestamp.

*/ inline Container& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the container. The ARN has the following * format:

arn:aws:<region>:<account that owns this * container>:container/<name of container>

For example: * arn:aws:mediastore:us-west-2:111122223333:container/movies

*/ inline const Aws::String& GetARN() const{ return m_aRN; } /** *

The Amazon Resource Name (ARN) of the container. The ARN has the following * format:

arn:aws:<region>:<account that owns this * container>:container/<name of container>

For example: * arn:aws:mediastore:us-west-2:111122223333:container/movies

*/ inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the container. The ARN has the following * format:

arn:aws:<region>:<account that owns this * container>:container/<name of container>

For example: * arn:aws:mediastore:us-west-2:111122223333:container/movies

*/ inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; } /** *

The Amazon Resource Name (ARN) of the container. The ARN has the following * format:

arn:aws:<region>:<account that owns this * container>:container/<name of container>

For example: * arn:aws:mediastore:us-west-2:111122223333:container/movies

*/ inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the container. The ARN has the following * format:

arn:aws:<region>:<account that owns this * container>:container/<name of container>

For example: * arn:aws:mediastore:us-west-2:111122223333:container/movies

*/ inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); } /** *

The Amazon Resource Name (ARN) of the container. The ARN has the following * format:

arn:aws:<region>:<account that owns this * container>:container/<name of container>

For example: * arn:aws:mediastore:us-west-2:111122223333:container/movies

*/ inline Container& WithARN(const Aws::String& value) { SetARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the container. The ARN has the following * format:

arn:aws:<region>:<account that owns this * container>:container/<name of container>

For example: * arn:aws:mediastore:us-west-2:111122223333:container/movies

*/ inline Container& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the container. The ARN has the following * format:

arn:aws:<region>:<account that owns this * container>:container/<name of container>

For example: * arn:aws:mediastore:us-west-2:111122223333:container/movies

*/ inline Container& WithARN(const char* value) { SetARN(value); return *this;} /** *

The name of the container.

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

The name of the container.

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

The name of the container.

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

The name of the container.

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

The name of the container.

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

The name of the container.

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

The name of the container.

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

The name of the container.

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

The status of container creation or deletion. The status is one of the * following: CREATING, ACTIVE, or DELETING. * While the service is creating the container, the status is * CREATING. When the endpoint is available, the status changes to * ACTIVE.

*/ inline const ContainerStatus& GetStatus() const{ return m_status; } /** *

The status of container creation or deletion. The status is one of the * following: CREATING, ACTIVE, or DELETING. * While the service is creating the container, the status is * CREATING. When the endpoint is available, the status changes to * ACTIVE.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of container creation or deletion. The status is one of the * following: CREATING, ACTIVE, or DELETING. * While the service is creating the container, the status is * CREATING. When the endpoint is available, the status changes to * ACTIVE.

*/ inline void SetStatus(const ContainerStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of container creation or deletion. The status is one of the * following: CREATING, ACTIVE, or DELETING. * While the service is creating the container, the status is * CREATING. When the endpoint is available, the status changes to * ACTIVE.

*/ inline void SetStatus(ContainerStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of container creation or deletion. The status is one of the * following: CREATING, ACTIVE, or DELETING. * While the service is creating the container, the status is * CREATING. When the endpoint is available, the status changes to * ACTIVE.

*/ inline Container& WithStatus(const ContainerStatus& value) { SetStatus(value); return *this;} /** *

The status of container creation or deletion. The status is one of the * following: CREATING, ACTIVE, or DELETING. * While the service is creating the container, the status is * CREATING. When the endpoint is available, the status changes to * ACTIVE.

*/ inline Container& WithStatus(ContainerStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The state of access logging on the container. This value is * false by default, indicating that AWS Elemental MediaStore does not * send access logs to Amazon CloudWatch Logs. When you enable access logging on * the container, MediaStore changes this value to true, indicating * that the service delivers access logs for objects stored in that container to * CloudWatch Logs.

*/ inline bool GetAccessLoggingEnabled() const{ return m_accessLoggingEnabled; } /** *

The state of access logging on the container. This value is * false by default, indicating that AWS Elemental MediaStore does not * send access logs to Amazon CloudWatch Logs. When you enable access logging on * the container, MediaStore changes this value to true, indicating * that the service delivers access logs for objects stored in that container to * CloudWatch Logs.

*/ inline bool AccessLoggingEnabledHasBeenSet() const { return m_accessLoggingEnabledHasBeenSet; } /** *

The state of access logging on the container. This value is * false by default, indicating that AWS Elemental MediaStore does not * send access logs to Amazon CloudWatch Logs. When you enable access logging on * the container, MediaStore changes this value to true, indicating * that the service delivers access logs for objects stored in that container to * CloudWatch Logs.

*/ inline void SetAccessLoggingEnabled(bool value) { m_accessLoggingEnabledHasBeenSet = true; m_accessLoggingEnabled = value; } /** *

The state of access logging on the container. This value is * false by default, indicating that AWS Elemental MediaStore does not * send access logs to Amazon CloudWatch Logs. When you enable access logging on * the container, MediaStore changes this value to true, indicating * that the service delivers access logs for objects stored in that container to * CloudWatch Logs.

*/ inline Container& WithAccessLoggingEnabled(bool value) { SetAccessLoggingEnabled(value); return *this;} private: Aws::String m_endpoint; bool m_endpointHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::String m_aRN; bool m_aRNHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ContainerStatus m_status; bool m_statusHasBeenSet = false; bool m_accessLoggingEnabled; bool m_accessLoggingEnabledHasBeenSet = false; }; } // namespace Model } // namespace MediaStore } // namespace Aws