/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The current account setting for a resource.See Also:
AWS API
* Reference
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;} /** *Whether the account setting is enabled or disabled for the specified * resource.
*/ inline const Aws::String& GetValue() const{ return m_value; } /** *Whether the account setting is enabled or disabled for the specified * resource.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *Whether the account setting is enabled or disabled for the specified * resource.
*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *Whether the account setting is enabled or disabled for the specified * resource.
*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *Whether the account setting is enabled or disabled for the specified * resource.
*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *Whether the account setting is enabled or disabled for the specified * resource.
*/ inline Setting& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *Whether the account setting is enabled or disabled for the specified * resource.
*/ inline Setting& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *Whether the account setting is enabled or disabled for the specified * resource.
*/ inline Setting& WithValue(const char* value) { SetValue(value); return *this;} /** *The ARN of the principal, which can be an IAM user, IAM 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, which can be an IAM user, IAM 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, which can be an IAM user, IAM 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, which can be an IAM user, IAM 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, which can be an IAM user, IAM 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, which can be an IAM user, IAM 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, which can be an IAM user, IAM 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, which can be an IAM user, IAM 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; Aws::String m_value; bool m_valueHasBeenSet; Aws::String m_principalArn; bool m_principalArnHasBeenSet; }; } // namespace Model } // namespace ECS } // namespace Aws