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

The current account setting for a resource.

See Also:

AWS API * Reference

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

The Amazon ECS resource name.

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

The Amazon ECS resource name.

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

The Amazon ECS resource name.

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

The Amazon ECS resource name.

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

The Amazon ECS resource name.

*/ inline Setting& WithName(const SettingName& value) { SetName(value); return *this;} /** *

The Amazon ECS resource name.

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

Determines whether the account setting is on or off for the specified * resource.

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

Determines whether the account setting is on or off for the specified * resource.

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

Determines whether the account setting is on or off for the specified * resource.

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

Determines whether the account setting is on or off for the specified * resource.

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

Determines whether the account setting is on or off for the specified * resource.

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

Determines whether the account setting is on or off for the specified * resource.

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

Determines whether the account setting is on or off for the specified * resource.

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

Determines whether the account setting is on or off for the specified * resource.

*/ inline Setting& WithValue(const char* value) { SetValue(value); return *this;} /** *

The ARN of the principal. It can be a user, role, or the root user. If this * field is omitted, the authenticated user is assumed.

*/ inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; } /** *

The ARN of the principal. It can be a user, role, or the root user. If this * field is omitted, the authenticated user is assumed.

*/ inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; } /** *

The ARN of the principal. It can be a user, role, or the root user. If this * field is omitted, the authenticated user is assumed.

*/ inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; } /** *

The ARN of the principal. It can be a user, role, or the root user. If this * field is omitted, the authenticated user is assumed.

*/ inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); } /** *

The ARN of the principal. It can be a user, role, or the root user. If this * field is omitted, the authenticated user is assumed.

*/ inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); } /** *

The ARN of the principal. It can be a user, role, or the root user. If this * field is omitted, the authenticated user is assumed.

*/ inline Setting& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;} /** *

The ARN of the principal. It can be a user, role, or the root user. If this * field is omitted, the authenticated user is assumed.

*/ inline Setting& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;} /** *

The ARN of the principal. It can be a user, role, or the root user. If this * field is omitted, the authenticated user is assumed.

*/ inline Setting& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;} private: SettingName m_name; bool m_nameHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; Aws::String m_principalArn; bool m_principalArnHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws