/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { /** *

Describes the state of an Amazon Lightsail bucket.

See Also:

* AWS * API Reference

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

The state code of the bucket.

The following codes are possible:

*
  • OK - The bucket is in a running state.

  • *

    Unknown - Creation of the bucket might have timed-out. You * might want to delete the bucket and create a new one.

*/ inline const Aws::String& GetCode() const{ return m_code; } /** *

The state code of the bucket.

The following codes are possible:

*
  • OK - The bucket is in a running state.

  • *

    Unknown - Creation of the bucket might have timed-out. You * might want to delete the bucket and create a new one.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The state code of the bucket.

The following codes are possible:

*
  • OK - The bucket is in a running state.

  • *

    Unknown - Creation of the bucket might have timed-out. You * might want to delete the bucket and create a new one.

*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The state code of the bucket.

The following codes are possible:

*
  • OK - The bucket is in a running state.

  • *

    Unknown - Creation of the bucket might have timed-out. You * might want to delete the bucket and create a new one.

*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

The state code of the bucket.

The following codes are possible:

*
  • OK - The bucket is in a running state.

  • *

    Unknown - Creation of the bucket might have timed-out. You * might want to delete the bucket and create a new one.

*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *

The state code of the bucket.

The following codes are possible:

*
  • OK - The bucket is in a running state.

  • *

    Unknown - Creation of the bucket might have timed-out. You * might want to delete the bucket and create a new one.

*/ inline BucketState& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *

The state code of the bucket.

The following codes are possible:

*
  • OK - The bucket is in a running state.

  • *

    Unknown - Creation of the bucket might have timed-out. You * might want to delete the bucket and create a new one.

*/ inline BucketState& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *

The state code of the bucket.

The following codes are possible:

*
  • OK - The bucket is in a running state.

  • *

    Unknown - Creation of the bucket might have timed-out. You * might want to delete the bucket and create a new one.

*/ inline BucketState& WithCode(const char* value) { SetCode(value); return *this;} /** *

A message that describes the state of the bucket.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

A message that describes the state of the bucket.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

A message that describes the state of the bucket.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

A message that describes the state of the bucket.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

A message that describes the state of the bucket.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

A message that describes the state of the bucket.

*/ inline BucketState& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

A message that describes the state of the bucket.

*/ inline BucketState& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

A message that describes the state of the bucket.

*/ inline BucketState& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws