/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class CreateVerifiedAccessTrustProviderRequest : public EC2Request { public: AWS_EC2_API CreateVerifiedAccessTrustProviderRequest(); // 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 "CreateVerifiedAccessTrustProvider"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The type of trust provider.

*/ inline const TrustProviderType& GetTrustProviderType() const{ return m_trustProviderType; } /** *

The type of trust provider.

*/ inline bool TrustProviderTypeHasBeenSet() const { return m_trustProviderTypeHasBeenSet; } /** *

The type of trust provider.

*/ inline void SetTrustProviderType(const TrustProviderType& value) { m_trustProviderTypeHasBeenSet = true; m_trustProviderType = value; } /** *

The type of trust provider.

*/ inline void SetTrustProviderType(TrustProviderType&& value) { m_trustProviderTypeHasBeenSet = true; m_trustProviderType = std::move(value); } /** *

The type of trust provider.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithTrustProviderType(const TrustProviderType& value) { SetTrustProviderType(value); return *this;} /** *

The type of trust provider.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithTrustProviderType(TrustProviderType&& value) { SetTrustProviderType(std::move(value)); return *this;} /** *

The type of user-based trust provider. This parameter is required when the * provider type is user.

*/ inline const UserTrustProviderType& GetUserTrustProviderType() const{ return m_userTrustProviderType; } /** *

The type of user-based trust provider. This parameter is required when the * provider type is user.

*/ inline bool UserTrustProviderTypeHasBeenSet() const { return m_userTrustProviderTypeHasBeenSet; } /** *

The type of user-based trust provider. This parameter is required when the * provider type is user.

*/ inline void SetUserTrustProviderType(const UserTrustProviderType& value) { m_userTrustProviderTypeHasBeenSet = true; m_userTrustProviderType = value; } /** *

The type of user-based trust provider. This parameter is required when the * provider type is user.

*/ inline void SetUserTrustProviderType(UserTrustProviderType&& value) { m_userTrustProviderTypeHasBeenSet = true; m_userTrustProviderType = std::move(value); } /** *

The type of user-based trust provider. This parameter is required when the * provider type is user.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithUserTrustProviderType(const UserTrustProviderType& value) { SetUserTrustProviderType(value); return *this;} /** *

The type of user-based trust provider. This parameter is required when the * provider type is user.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithUserTrustProviderType(UserTrustProviderType&& value) { SetUserTrustProviderType(std::move(value)); return *this;} /** *

The type of device-based trust provider. This parameter is required when the * provider type is device.

*/ inline const DeviceTrustProviderType& GetDeviceTrustProviderType() const{ return m_deviceTrustProviderType; } /** *

The type of device-based trust provider. This parameter is required when the * provider type is device.

*/ inline bool DeviceTrustProviderTypeHasBeenSet() const { return m_deviceTrustProviderTypeHasBeenSet; } /** *

The type of device-based trust provider. This parameter is required when the * provider type is device.

*/ inline void SetDeviceTrustProviderType(const DeviceTrustProviderType& value) { m_deviceTrustProviderTypeHasBeenSet = true; m_deviceTrustProviderType = value; } /** *

The type of device-based trust provider. This parameter is required when the * provider type is device.

*/ inline void SetDeviceTrustProviderType(DeviceTrustProviderType&& value) { m_deviceTrustProviderTypeHasBeenSet = true; m_deviceTrustProviderType = std::move(value); } /** *

The type of device-based trust provider. This parameter is required when the * provider type is device.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithDeviceTrustProviderType(const DeviceTrustProviderType& value) { SetDeviceTrustProviderType(value); return *this;} /** *

The type of device-based trust provider. This parameter is required when the * provider type is device.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithDeviceTrustProviderType(DeviceTrustProviderType&& value) { SetDeviceTrustProviderType(std::move(value)); return *this;} /** *

The options for a OpenID Connect-compatible user-identity trust provider. * This parameter is required when the provider type is user.

*/ inline const CreateVerifiedAccessTrustProviderOidcOptions& GetOidcOptions() const{ return m_oidcOptions; } /** *

The options for a OpenID Connect-compatible user-identity trust provider. * This parameter is required when the provider type is user.

*/ inline bool OidcOptionsHasBeenSet() const { return m_oidcOptionsHasBeenSet; } /** *

The options for a OpenID Connect-compatible user-identity trust provider. * This parameter is required when the provider type is user.

*/ inline void SetOidcOptions(const CreateVerifiedAccessTrustProviderOidcOptions& value) { m_oidcOptionsHasBeenSet = true; m_oidcOptions = value; } /** *

The options for a OpenID Connect-compatible user-identity trust provider. * This parameter is required when the provider type is user.

*/ inline void SetOidcOptions(CreateVerifiedAccessTrustProviderOidcOptions&& value) { m_oidcOptionsHasBeenSet = true; m_oidcOptions = std::move(value); } /** *

The options for a OpenID Connect-compatible user-identity trust provider. * This parameter is required when the provider type is user.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithOidcOptions(const CreateVerifiedAccessTrustProviderOidcOptions& value) { SetOidcOptions(value); return *this;} /** *

The options for a OpenID Connect-compatible user-identity trust provider. * This parameter is required when the provider type is user.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithOidcOptions(CreateVerifiedAccessTrustProviderOidcOptions&& value) { SetOidcOptions(std::move(value)); return *this;} /** *

The options for a device-based trust provider. This parameter is required * when the provider type is device.

*/ inline const CreateVerifiedAccessTrustProviderDeviceOptions& GetDeviceOptions() const{ return m_deviceOptions; } /** *

The options for a device-based trust provider. This parameter is required * when the provider type is device.

*/ inline bool DeviceOptionsHasBeenSet() const { return m_deviceOptionsHasBeenSet; } /** *

The options for a device-based trust provider. This parameter is required * when the provider type is device.

*/ inline void SetDeviceOptions(const CreateVerifiedAccessTrustProviderDeviceOptions& value) { m_deviceOptionsHasBeenSet = true; m_deviceOptions = value; } /** *

The options for a device-based trust provider. This parameter is required * when the provider type is device.

*/ inline void SetDeviceOptions(CreateVerifiedAccessTrustProviderDeviceOptions&& value) { m_deviceOptionsHasBeenSet = true; m_deviceOptions = std::move(value); } /** *

The options for a device-based trust provider. This parameter is required * when the provider type is device.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithDeviceOptions(const CreateVerifiedAccessTrustProviderDeviceOptions& value) { SetDeviceOptions(value); return *this;} /** *

The options for a device-based trust provider. This parameter is required * when the provider type is device.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithDeviceOptions(CreateVerifiedAccessTrustProviderDeviceOptions&& value) { SetDeviceOptions(std::move(value)); return *this;} /** *

The identifier to be used when working with policy rules.

*/ inline const Aws::String& GetPolicyReferenceName() const{ return m_policyReferenceName; } /** *

The identifier to be used when working with policy rules.

*/ inline bool PolicyReferenceNameHasBeenSet() const { return m_policyReferenceNameHasBeenSet; } /** *

The identifier to be used when working with policy rules.

*/ inline void SetPolicyReferenceName(const Aws::String& value) { m_policyReferenceNameHasBeenSet = true; m_policyReferenceName = value; } /** *

The identifier to be used when working with policy rules.

*/ inline void SetPolicyReferenceName(Aws::String&& value) { m_policyReferenceNameHasBeenSet = true; m_policyReferenceName = std::move(value); } /** *

The identifier to be used when working with policy rules.

*/ inline void SetPolicyReferenceName(const char* value) { m_policyReferenceNameHasBeenSet = true; m_policyReferenceName.assign(value); } /** *

The identifier to be used when working with policy rules.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithPolicyReferenceName(const Aws::String& value) { SetPolicyReferenceName(value); return *this;} /** *

The identifier to be used when working with policy rules.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithPolicyReferenceName(Aws::String&& value) { SetPolicyReferenceName(std::move(value)); return *this;} /** *

The identifier to be used when working with policy rules.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithPolicyReferenceName(const char* value) { SetPolicyReferenceName(value); return *this;} /** *

A description for the Verified Access trust provider.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for the Verified Access trust provider.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for the Verified Access trust provider.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for the Verified Access trust provider.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for the Verified Access trust provider.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for the Verified Access trust provider.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the Verified Access trust provider.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for the Verified Access trust provider.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The tags to assign to the Verified Access trust provider.

*/ inline const Aws::Vector& GetTagSpecifications() const{ return m_tagSpecifications; } /** *

The tags to assign to the Verified Access trust provider.

*/ inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; } /** *

The tags to assign to the Verified Access trust provider.

*/ inline void SetTagSpecifications(const Aws::Vector& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; } /** *

The tags to assign to the Verified Access trust provider.

*/ inline void SetTagSpecifications(Aws::Vector&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); } /** *

The tags to assign to the Verified Access trust provider.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithTagSpecifications(const Aws::Vector& value) { SetTagSpecifications(value); return *this;} /** *

The tags to assign to the Verified Access trust provider.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithTagSpecifications(Aws::Vector&& value) { SetTagSpecifications(std::move(value)); return *this;} /** *

The tags to assign to the Verified Access trust provider.

*/ inline CreateVerifiedAccessTrustProviderRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; } /** *

The tags to assign to the Verified Access trust provider.

*/ inline CreateVerifiedAccessTrustProviderRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; } /** *

A unique, case-sensitive token that you provide to ensure idempotency of your * modification request. For more information, see Ensuring * Idempotency.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique, case-sensitive token that you provide to ensure idempotency of your * modification request. For more information, see Ensuring * Idempotency.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique, case-sensitive token that you provide to ensure idempotency of your * modification request. For more information, see Ensuring * Idempotency.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique, case-sensitive token that you provide to ensure idempotency of your * modification request. For more information, see Ensuring * Idempotency.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique, case-sensitive token that you provide to ensure idempotency of your * modification request. For more information, see Ensuring * Idempotency.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique, case-sensitive token that you provide to ensure idempotency of your * modification request. For more information, see Ensuring * Idempotency.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique, case-sensitive token that you provide to ensure idempotency of your * modification request. For more information, see Ensuring * Idempotency.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique, case-sensitive token that you provide to ensure idempotency of your * modification request. For more information, see Ensuring * Idempotency.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline CreateVerifiedAccessTrustProviderRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: TrustProviderType m_trustProviderType; bool m_trustProviderTypeHasBeenSet = false; UserTrustProviderType m_userTrustProviderType; bool m_userTrustProviderTypeHasBeenSet = false; DeviceTrustProviderType m_deviceTrustProviderType; bool m_deviceTrustProviderTypeHasBeenSet = false; CreateVerifiedAccessTrustProviderOidcOptions m_oidcOptions; bool m_oidcOptionsHasBeenSet = false; CreateVerifiedAccessTrustProviderDeviceOptions m_deviceOptions; bool m_deviceOptionsHasBeenSet = false; Aws::String m_policyReferenceName; bool m_policyReferenceNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws