/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include In terms of implementation, a Bucket is a resource. An Amazon S3 bucket name
* is globally unique, and the namespace is shared by all Amazon Web Services
* accounts. See Also:
AWS API
* Reference
The name of the bucket.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the bucket.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the bucket.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the bucket.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the bucket.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the bucket.
*/ inline Bucket& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the bucket.
*/ inline Bucket& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the bucket.
*/ inline Bucket& WithName(const char* value) { SetName(value); return *this;} /** *Date the bucket was created. This date can change when making changes to your * bucket, such as editing its bucket policy.
*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *Date the bucket was created. This date can change when making changes to your * bucket, such as editing its bucket policy.
*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *Date the bucket was created. This date can change when making changes to your * bucket, such as editing its bucket policy.
*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *Date the bucket was created. This date can change when making changes to your * bucket, such as editing its bucket policy.
*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *Date the bucket was created. This date can change when making changes to your * bucket, such as editing its bucket policy.
*/ inline Bucket& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *Date the bucket was created. This date can change when making changes to your * bucket, such as editing its bucket policy.
*/ inline Bucket& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws