/** * 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 EC2 { namespace Model { /** */ class ModifyIdentityIdFormatRequest : public EC2Request { public: AWS_EC2_API ModifyIdentityIdFormatRequest(); // 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 "ModifyIdentityIdFormat"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The ARN of the principal, which can be an IAM user, IAM role, or the root * user. Specify all to modify the ID format for all IAM users, IAM * roles, and the root user of the account.

*/ 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. Specify all to modify the ID format for all IAM users, IAM * roles, and the root user of the account.

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

The ARN of the principal, which can be an IAM user, IAM role, or the root * user. Specify all to modify the ID format for all IAM users, IAM * roles, and the root user of the account.

*/ 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. Specify all to modify the ID format for all IAM users, IAM * roles, and the root user of the account.

*/ 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. Specify all to modify the ID format for all IAM users, IAM * roles, and the root user of the account.

*/ 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. Specify all to modify the ID format for all IAM users, IAM * roles, and the root user of the account.

*/ inline ModifyIdentityIdFormatRequest& 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. Specify all to modify the ID format for all IAM users, IAM * roles, and the root user of the account.

*/ inline ModifyIdentityIdFormatRequest& 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. Specify all to modify the ID format for all IAM users, IAM * roles, and the root user of the account.

*/ inline ModifyIdentityIdFormatRequest& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;} /** *

The type of resource: bundle | conversion-task | * customer-gateway | dhcp-options | * elastic-ip-allocation | elastic-ip-association | * export-task | flow-log | image | * import-task | internet-gateway | * network-acl | network-acl-association | * network-interface | network-interface-attachment | * prefix-list | route-table | * route-table-association | security-group | * subnet | subnet-cidr-block-association | * vpc | vpc-cidr-block-association | * vpc-endpoint | vpc-peering-connection | * vpn-connection | vpn-gateway.

Alternatively, * use the all-current option to include all resource types that are * currently within their opt-in period for longer IDs.

*/ inline const Aws::String& GetResource() const{ return m_resource; } /** *

The type of resource: bundle | conversion-task | * customer-gateway | dhcp-options | * elastic-ip-allocation | elastic-ip-association | * export-task | flow-log | image | * import-task | internet-gateway | * network-acl | network-acl-association | * network-interface | network-interface-attachment | * prefix-list | route-table | * route-table-association | security-group | * subnet | subnet-cidr-block-association | * vpc | vpc-cidr-block-association | * vpc-endpoint | vpc-peering-connection | * vpn-connection | vpn-gateway.

Alternatively, * use the all-current option to include all resource types that are * currently within their opt-in period for longer IDs.

*/ inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; } /** *

The type of resource: bundle | conversion-task | * customer-gateway | dhcp-options | * elastic-ip-allocation | elastic-ip-association | * export-task | flow-log | image | * import-task | internet-gateway | * network-acl | network-acl-association | * network-interface | network-interface-attachment | * prefix-list | route-table | * route-table-association | security-group | * subnet | subnet-cidr-block-association | * vpc | vpc-cidr-block-association | * vpc-endpoint | vpc-peering-connection | * vpn-connection | vpn-gateway.

Alternatively, * use the all-current option to include all resource types that are * currently within their opt-in period for longer IDs.

*/ inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; } /** *

The type of resource: bundle | conversion-task | * customer-gateway | dhcp-options | * elastic-ip-allocation | elastic-ip-association | * export-task | flow-log | image | * import-task | internet-gateway | * network-acl | network-acl-association | * network-interface | network-interface-attachment | * prefix-list | route-table | * route-table-association | security-group | * subnet | subnet-cidr-block-association | * vpc | vpc-cidr-block-association | * vpc-endpoint | vpc-peering-connection | * vpn-connection | vpn-gateway.

Alternatively, * use the all-current option to include all resource types that are * currently within their opt-in period for longer IDs.

*/ inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); } /** *

The type of resource: bundle | conversion-task | * customer-gateway | dhcp-options | * elastic-ip-allocation | elastic-ip-association | * export-task | flow-log | image | * import-task | internet-gateway | * network-acl | network-acl-association | * network-interface | network-interface-attachment | * prefix-list | route-table | * route-table-association | security-group | * subnet | subnet-cidr-block-association | * vpc | vpc-cidr-block-association | * vpc-endpoint | vpc-peering-connection | * vpn-connection | vpn-gateway.

Alternatively, * use the all-current option to include all resource types that are * currently within their opt-in period for longer IDs.

*/ inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); } /** *

The type of resource: bundle | conversion-task | * customer-gateway | dhcp-options | * elastic-ip-allocation | elastic-ip-association | * export-task | flow-log | image | * import-task | internet-gateway | * network-acl | network-acl-association | * network-interface | network-interface-attachment | * prefix-list | route-table | * route-table-association | security-group | * subnet | subnet-cidr-block-association | * vpc | vpc-cidr-block-association | * vpc-endpoint | vpc-peering-connection | * vpn-connection | vpn-gateway.

Alternatively, * use the all-current option to include all resource types that are * currently within their opt-in period for longer IDs.

*/ inline ModifyIdentityIdFormatRequest& WithResource(const Aws::String& value) { SetResource(value); return *this;} /** *

The type of resource: bundle | conversion-task | * customer-gateway | dhcp-options | * elastic-ip-allocation | elastic-ip-association | * export-task | flow-log | image | * import-task | internet-gateway | * network-acl | network-acl-association | * network-interface | network-interface-attachment | * prefix-list | route-table | * route-table-association | security-group | * subnet | subnet-cidr-block-association | * vpc | vpc-cidr-block-association | * vpc-endpoint | vpc-peering-connection | * vpn-connection | vpn-gateway.

Alternatively, * use the all-current option to include all resource types that are * currently within their opt-in period for longer IDs.

*/ inline ModifyIdentityIdFormatRequest& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;} /** *

The type of resource: bundle | conversion-task | * customer-gateway | dhcp-options | * elastic-ip-allocation | elastic-ip-association | * export-task | flow-log | image | * import-task | internet-gateway | * network-acl | network-acl-association | * network-interface | network-interface-attachment | * prefix-list | route-table | * route-table-association | security-group | * subnet | subnet-cidr-block-association | * vpc | vpc-cidr-block-association | * vpc-endpoint | vpc-peering-connection | * vpn-connection | vpn-gateway.

Alternatively, * use the all-current option to include all resource types that are * currently within their opt-in period for longer IDs.

*/ inline ModifyIdentityIdFormatRequest& WithResource(const char* value) { SetResource(value); return *this;} /** *

Indicates whether the resource should use longer IDs (17-character IDs)

*/ inline bool GetUseLongIds() const{ return m_useLongIds; } /** *

Indicates whether the resource should use longer IDs (17-character IDs)

*/ inline bool UseLongIdsHasBeenSet() const { return m_useLongIdsHasBeenSet; } /** *

Indicates whether the resource should use longer IDs (17-character IDs)

*/ inline void SetUseLongIds(bool value) { m_useLongIdsHasBeenSet = true; m_useLongIds = value; } /** *

Indicates whether the resource should use longer IDs (17-character IDs)

*/ inline ModifyIdentityIdFormatRequest& WithUseLongIds(bool value) { SetUseLongIds(value); return *this;} private: Aws::String m_principalArn; bool m_principalArnHasBeenSet = false; Aws::String m_resource; bool m_resourceHasBeenSet = false; bool m_useLongIds; bool m_useLongIdsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws