/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace ECS { namespace Model { /** */ class PutAccountSettingRequest : public ECSRequest { public: AWS_ECS_API PutAccountSettingRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutAccountSetting"; } AWS_ECS_API Aws::String SerializePayload() const override; AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon ECS resource name for which to modify the account setting. If * serviceLongArnFormat is specified, the ARN for your Amazon ECS * services is affected. If taskLongArnFormat is specified, the ARN * and resource ID for your Amazon ECS tasks is affected. If * containerInstanceLongArnFormat is specified, the ARN and resource * ID for your Amazon ECS container instances is affected. If * awsvpcTrunking is specified, the elastic network interface (ENI) * limit for your Amazon ECS container instances is affected. If * containerInsights is specified, the default setting for Amazon Web * Services CloudWatch Container Insights for your clusters is affected. If * fargateFIPSMode is specified, Fargate FIPS 140 compliance is * affected. If tagResourceAuthorization is specified, the opt-in * option for tagging resources on creation is affected. For information about the * opt-in timeline, see Tagging * authorization timeline in the Amazon ECS Developer Guide.

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

The Amazon ECS resource name for which to modify the account setting. If * serviceLongArnFormat is specified, the ARN for your Amazon ECS * services is affected. If taskLongArnFormat is specified, the ARN * and resource ID for your Amazon ECS tasks is affected. If * containerInstanceLongArnFormat is specified, the ARN and resource * ID for your Amazon ECS container instances is affected. If * awsvpcTrunking is specified, the elastic network interface (ENI) * limit for your Amazon ECS container instances is affected. If * containerInsights is specified, the default setting for Amazon Web * Services CloudWatch Container Insights for your clusters is affected. If * fargateFIPSMode is specified, Fargate FIPS 140 compliance is * affected. If tagResourceAuthorization is specified, the opt-in * option for tagging resources on creation is affected. For information about the * opt-in timeline, see Tagging * authorization timeline in the Amazon ECS Developer Guide.

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

The Amazon ECS resource name for which to modify the account setting. If * serviceLongArnFormat is specified, the ARN for your Amazon ECS * services is affected. If taskLongArnFormat is specified, the ARN * and resource ID for your Amazon ECS tasks is affected. If * containerInstanceLongArnFormat is specified, the ARN and resource * ID for your Amazon ECS container instances is affected. If * awsvpcTrunking is specified, the elastic network interface (ENI) * limit for your Amazon ECS container instances is affected. If * containerInsights is specified, the default setting for Amazon Web * Services CloudWatch Container Insights for your clusters is affected. If * fargateFIPSMode is specified, Fargate FIPS 140 compliance is * affected. If tagResourceAuthorization is specified, the opt-in * option for tagging resources on creation is affected. For information about the * opt-in timeline, see Tagging * authorization timeline in the Amazon ECS Developer Guide.

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

The Amazon ECS resource name for which to modify the account setting. If * serviceLongArnFormat is specified, the ARN for your Amazon ECS * services is affected. If taskLongArnFormat is specified, the ARN * and resource ID for your Amazon ECS tasks is affected. If * containerInstanceLongArnFormat is specified, the ARN and resource * ID for your Amazon ECS container instances is affected. If * awsvpcTrunking is specified, the elastic network interface (ENI) * limit for your Amazon ECS container instances is affected. If * containerInsights is specified, the default setting for Amazon Web * Services CloudWatch Container Insights for your clusters is affected. If * fargateFIPSMode is specified, Fargate FIPS 140 compliance is * affected. If tagResourceAuthorization is specified, the opt-in * option for tagging resources on creation is affected. For information about the * opt-in timeline, see Tagging * authorization timeline in the Amazon ECS Developer Guide.

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

The Amazon ECS resource name for which to modify the account setting. If * serviceLongArnFormat is specified, the ARN for your Amazon ECS * services is affected. If taskLongArnFormat is specified, the ARN * and resource ID for your Amazon ECS tasks is affected. If * containerInstanceLongArnFormat is specified, the ARN and resource * ID for your Amazon ECS container instances is affected. If * awsvpcTrunking is specified, the elastic network interface (ENI) * limit for your Amazon ECS container instances is affected. If * containerInsights is specified, the default setting for Amazon Web * Services CloudWatch Container Insights for your clusters is affected. If * fargateFIPSMode is specified, Fargate FIPS 140 compliance is * affected. If tagResourceAuthorization is specified, the opt-in * option for tagging resources on creation is affected. For information about the * opt-in timeline, see Tagging * authorization timeline in the Amazon ECS Developer Guide.

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

The Amazon ECS resource name for which to modify the account setting. If * serviceLongArnFormat is specified, the ARN for your Amazon ECS * services is affected. If taskLongArnFormat is specified, the ARN * and resource ID for your Amazon ECS tasks is affected. If * containerInstanceLongArnFormat is specified, the ARN and resource * ID for your Amazon ECS container instances is affected. If * awsvpcTrunking is specified, the elastic network interface (ENI) * limit for your Amazon ECS container instances is affected. If * containerInsights is specified, the default setting for Amazon Web * Services CloudWatch Container Insights for your clusters is affected. If * fargateFIPSMode is specified, Fargate FIPS 140 compliance is * affected. If tagResourceAuthorization is specified, the opt-in * option for tagging resources on creation is affected. For information about the * opt-in timeline, see Tagging * authorization timeline in the Amazon ECS Developer Guide.

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

The account setting value for the specified principal ARN. Accepted values * are enabled, disabled, on, and * off.

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

The account setting value for the specified principal ARN. Accepted values * are enabled, disabled, on, and * off.

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

The account setting value for the specified principal ARN. Accepted values * are enabled, disabled, on, and * off.

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

The account setting value for the specified principal ARN. Accepted values * are enabled, disabled, on, and * off.

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

The account setting value for the specified principal ARN. Accepted values * are enabled, disabled, on, and * off.

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

The account setting value for the specified principal ARN. Accepted values * are enabled, disabled, on, and * off.

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

The account setting value for the specified principal ARN. Accepted values * are enabled, disabled, on, and * off.

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

The account setting value for the specified principal ARN. Accepted values * are enabled, disabled, on, and * off.

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

The ARN of the principal, which can be a user, role, or the root user. If you * specify the root user, it modifies the account setting for all users, roles, and * the root user of the account unless a user or role explicitly overrides these * settings. If this field is omitted, the setting is changed only for the * authenticated user.

Federated users assume the account setting of * the root user and can't have explicit account settings set for them.

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

The ARN of the principal, which can be a user, role, or the root user. If you * specify the root user, it modifies the account setting for all users, roles, and * the root user of the account unless a user or role explicitly overrides these * settings. If this field is omitted, the setting is changed only for the * authenticated user.

Federated users assume the account setting of * the root user and can't have explicit account settings set for them.

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

The ARN of the principal, which can be a user, role, or the root user. If you * specify the root user, it modifies the account setting for all users, roles, and * the root user of the account unless a user or role explicitly overrides these * settings. If this field is omitted, the setting is changed only for the * authenticated user.

Federated users assume the account setting of * the root user and can't have explicit account settings set for them.

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

The ARN of the principal, which can be a user, role, or the root user. If you * specify the root user, it modifies the account setting for all users, roles, and * the root user of the account unless a user or role explicitly overrides these * settings. If this field is omitted, the setting is changed only for the * authenticated user.

Federated users assume the account setting of * the root user and can't have explicit account settings set for them.

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

The ARN of the principal, which can be a user, role, or the root user. If you * specify the root user, it modifies the account setting for all users, roles, and * the root user of the account unless a user or role explicitly overrides these * settings. If this field is omitted, the setting is changed only for the * authenticated user.

Federated users assume the account setting of * the root user and can't have explicit account settings set for them.

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

The ARN of the principal, which can be a user, role, or the root user. If you * specify the root user, it modifies the account setting for all users, roles, and * the root user of the account unless a user or role explicitly overrides these * settings. If this field is omitted, the setting is changed only for the * authenticated user.

Federated users assume the account setting of * the root user and can't have explicit account settings set for them.

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

The ARN of the principal, which can be a user, role, or the root user. If you * specify the root user, it modifies the account setting for all users, roles, and * the root user of the account unless a user or role explicitly overrides these * settings. If this field is omitted, the setting is changed only for the * authenticated user.

Federated users assume the account setting of * the root user and can't have explicit account settings set for them.

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

The ARN of the principal, which can be a user, role, or the root user. If you * specify the root user, it modifies the account setting for all users, roles, and * the root user of the account unless a user or role explicitly overrides these * settings. If this field is omitted, the setting is changed only for the * authenticated user.

Federated users assume the account setting of * the root user and can't have explicit account settings set for them.

*/ inline PutAccountSettingRequest& 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