This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-ecs/include/aws/ecs/model/PutAccountSettingRequest.h

259 lines
12 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ecs/ECS_EXPORTS.h>
#include <aws/ecs/ECSRequest.h>
#include <aws/ecs/model/SettingName.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ECS
{
namespace Model
{
/**
*/
class AWS_ECS_API PutAccountSettingRequest : public ECSRequest
{
public:
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::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon ECS resource name for which to modify the account setting. If
* <code>serviceLongArnFormat</code> is specified, the ARN for your Amazon ECS
* services is affected. If <code>taskLongArnFormat</code> is specified, the ARN
* and resource ID for your Amazon ECS tasks is affected. If
* <code>containerInstanceLongArnFormat</code> is specified, the ARN and resource
* ID for your Amazon ECS container instances is affected. If
* <code>awsvpcTrunking</code> is specified, the elastic network interface (ENI)
* limit for your Amazon ECS container instances is affected. If
* <code>containerInsights</code> is specified, the default setting for CloudWatch
* Container Insights for your clusters is affected.</p>
*/
inline const SettingName& GetName() const{ return m_name; }
/**
* <p>The Amazon ECS resource name for which to modify the account setting. If
* <code>serviceLongArnFormat</code> is specified, the ARN for your Amazon ECS
* services is affected. If <code>taskLongArnFormat</code> is specified, the ARN
* and resource ID for your Amazon ECS tasks is affected. If
* <code>containerInstanceLongArnFormat</code> is specified, the ARN and resource
* ID for your Amazon ECS container instances is affected. If
* <code>awsvpcTrunking</code> is specified, the elastic network interface (ENI)
* limit for your Amazon ECS container instances is affected. If
* <code>containerInsights</code> is specified, the default setting for CloudWatch
* Container Insights for your clusters is affected.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The Amazon ECS resource name for which to modify the account setting. If
* <code>serviceLongArnFormat</code> is specified, the ARN for your Amazon ECS
* services is affected. If <code>taskLongArnFormat</code> is specified, the ARN
* and resource ID for your Amazon ECS tasks is affected. If
* <code>containerInstanceLongArnFormat</code> is specified, the ARN and resource
* ID for your Amazon ECS container instances is affected. If
* <code>awsvpcTrunking</code> is specified, the elastic network interface (ENI)
* limit for your Amazon ECS container instances is affected. If
* <code>containerInsights</code> is specified, the default setting for CloudWatch
* Container Insights for your clusters is affected.</p>
*/
inline void SetName(const SettingName& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The Amazon ECS resource name for which to modify the account setting. If
* <code>serviceLongArnFormat</code> is specified, the ARN for your Amazon ECS
* services is affected. If <code>taskLongArnFormat</code> is specified, the ARN
* and resource ID for your Amazon ECS tasks is affected. If
* <code>containerInstanceLongArnFormat</code> is specified, the ARN and resource
* ID for your Amazon ECS container instances is affected. If
* <code>awsvpcTrunking</code> is specified, the elastic network interface (ENI)
* limit for your Amazon ECS container instances is affected. If
* <code>containerInsights</code> is specified, the default setting for CloudWatch
* Container Insights for your clusters is affected.</p>
*/
inline void SetName(SettingName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The Amazon ECS resource name for which to modify the account setting. If
* <code>serviceLongArnFormat</code> is specified, the ARN for your Amazon ECS
* services is affected. If <code>taskLongArnFormat</code> is specified, the ARN
* and resource ID for your Amazon ECS tasks is affected. If
* <code>containerInstanceLongArnFormat</code> is specified, the ARN and resource
* ID for your Amazon ECS container instances is affected. If
* <code>awsvpcTrunking</code> is specified, the elastic network interface (ENI)
* limit for your Amazon ECS container instances is affected. If
* <code>containerInsights</code> is specified, the default setting for CloudWatch
* Container Insights for your clusters is affected.</p>
*/
inline PutAccountSettingRequest& WithName(const SettingName& value) { SetName(value); return *this;}
/**
* <p>The Amazon ECS resource name for which to modify the account setting. If
* <code>serviceLongArnFormat</code> is specified, the ARN for your Amazon ECS
* services is affected. If <code>taskLongArnFormat</code> is specified, the ARN
* and resource ID for your Amazon ECS tasks is affected. If
* <code>containerInstanceLongArnFormat</code> is specified, the ARN and resource
* ID for your Amazon ECS container instances is affected. If
* <code>awsvpcTrunking</code> is specified, the elastic network interface (ENI)
* limit for your Amazon ECS container instances is affected. If
* <code>containerInsights</code> is specified, the default setting for CloudWatch
* Container Insights for your clusters is affected.</p>
*/
inline PutAccountSettingRequest& WithName(SettingName&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The account setting value for the specified principal ARN. Accepted values
* are <code>enabled</code> and <code>disabled</code>.</p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The account setting value for the specified principal ARN. Accepted values
* are <code>enabled</code> and <code>disabled</code>.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The account setting value for the specified principal ARN. Accepted values
* are <code>enabled</code> and <code>disabled</code>.</p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The account setting value for the specified principal ARN. Accepted values
* are <code>enabled</code> and <code>disabled</code>.</p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The account setting value for the specified principal ARN. Accepted values
* are <code>enabled</code> and <code>disabled</code>.</p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The account setting value for the specified principal ARN. Accepted values
* are <code>enabled</code> and <code>disabled</code>.</p>
*/
inline PutAccountSettingRequest& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The account setting value for the specified principal ARN. Accepted values
* are <code>enabled</code> and <code>disabled</code>.</p>
*/
inline PutAccountSettingRequest& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The account setting value for the specified principal ARN. Accepted values
* are <code>enabled</code> and <code>disabled</code>.</p>
*/
inline PutAccountSettingRequest& WithValue(const char* value) { SetValue(value); return *this;}
/**
* <p>The ARN of the principal, which can be an IAM user, IAM role, or the root
* user. If you specify the root user, it modifies the account setting for all IAM
* users, IAM roles, and the root user of the account unless an IAM user or role
* explicitly overrides these settings. If this field is omitted, the setting is
* changed only for the authenticated user.</p>
*/
inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
/**
* <p>The ARN of the principal, which can be an IAM user, IAM role, or the root
* user. If you specify the root user, it modifies the account setting for all IAM
* users, IAM roles, and the root user of the account unless an IAM user or role
* explicitly overrides these settings. If this field is omitted, the setting is
* changed only for the authenticated user.</p>
*/
inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
/**
* <p>The ARN of the principal, which can be an IAM user, IAM role, or the root
* user. If you specify the root user, it modifies the account setting for all IAM
* users, IAM roles, and the root user of the account unless an IAM user or role
* explicitly overrides these settings. If this field is omitted, the setting is
* changed only for the authenticated user.</p>
*/
inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
/**
* <p>The ARN of the principal, which can be an IAM user, IAM role, or the root
* user. If you specify the root user, it modifies the account setting for all IAM
* users, IAM roles, and the root user of the account unless an IAM user or role
* explicitly overrides these settings. If this field is omitted, the setting is
* changed only for the authenticated user.</p>
*/
inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); }
/**
* <p>The ARN of the principal, which can be an IAM user, IAM role, or the root
* user. If you specify the root user, it modifies the account setting for all IAM
* users, IAM roles, and the root user of the account unless an IAM user or role
* explicitly overrides these settings. If this field is omitted, the setting is
* changed only for the authenticated user.</p>
*/
inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
/**
* <p>The ARN of the principal, which can be an IAM user, IAM role, or the root
* user. If you specify the root user, it modifies the account setting for all IAM
* users, IAM roles, and the root user of the account unless an IAM user or role
* explicitly overrides these settings. If this field is omitted, the setting is
* changed only for the authenticated user.</p>
*/
inline PutAccountSettingRequest& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
/**
* <p>The ARN of the principal, which can be an IAM user, IAM role, or the root
* user. If you specify the root user, it modifies the account setting for all IAM
* users, IAM roles, and the root user of the account unless an IAM user or role
* explicitly overrides these settings. If this field is omitted, the setting is
* changed only for the authenticated user.</p>
*/
inline PutAccountSettingRequest& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;}
/**
* <p>The ARN of the principal, which can be an IAM user, IAM role, or the root
* user. If you specify the root user, it modifies the account setting for all IAM
* users, IAM roles, and the root user of the account unless an IAM user or role
* explicitly overrides these settings. If this field is omitted, the setting is
* changed only for the authenticated user.</p>
*/
inline PutAccountSettingRequest& 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