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

Displays the attributes associated with a single Amazon Web Services * account.

See Also:

AWS * API Reference

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

The name of the account attribute.

*/ inline const AccountAttributeName& GetName() const{ return m_name; } /** *

The name of the account attribute.

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

The name of the account attribute.

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

The name of the account attribute.

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

The name of the account attribute.

*/ inline AccountAttribute& WithName(const AccountAttributeName& value) { SetName(value); return *this;} /** *

The name of the account attribute.

*/ inline AccountAttribute& WithName(AccountAttributeName&& value) { SetName(std::move(value)); return *this;} /** *

The value associated with the account attribute name.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value associated with the account attribute name.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value associated with the account attribute name.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value associated with the account attribute name.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value associated with the account attribute name.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value associated with the account attribute name.

*/ inline AccountAttribute& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value associated with the account attribute name.

*/ inline AccountAttribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value associated with the account attribute name.

*/ inline AccountAttribute& WithValue(const char* value) { SetValue(value); return *this;} private: AccountAttributeName m_name; bool m_nameHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace PinpointSMSVoiceV2 } // namespace Aws