/** * 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 namespace Aws { namespace LakeFormation { namespace Model { /** */ class GetTemporaryGluePartitionCredentialsRequest : public LakeFormationRequest { public: AWS_LAKEFORMATION_API GetTemporaryGluePartitionCredentialsRequest(); // 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 "GetTemporaryGluePartitionCredentials"; } AWS_LAKEFORMATION_API Aws::String SerializePayload() const override; /** *

The ARN of the partitions' table.

*/ inline const Aws::String& GetTableArn() const{ return m_tableArn; } /** *

The ARN of the partitions' table.

*/ inline bool TableArnHasBeenSet() const { return m_tableArnHasBeenSet; } /** *

The ARN of the partitions' table.

*/ inline void SetTableArn(const Aws::String& value) { m_tableArnHasBeenSet = true; m_tableArn = value; } /** *

The ARN of the partitions' table.

*/ inline void SetTableArn(Aws::String&& value) { m_tableArnHasBeenSet = true; m_tableArn = std::move(value); } /** *

The ARN of the partitions' table.

*/ inline void SetTableArn(const char* value) { m_tableArnHasBeenSet = true; m_tableArn.assign(value); } /** *

The ARN of the partitions' table.

*/ inline GetTemporaryGluePartitionCredentialsRequest& WithTableArn(const Aws::String& value) { SetTableArn(value); return *this;} /** *

The ARN of the partitions' table.

*/ inline GetTemporaryGluePartitionCredentialsRequest& WithTableArn(Aws::String&& value) { SetTableArn(std::move(value)); return *this;} /** *

The ARN of the partitions' table.

*/ inline GetTemporaryGluePartitionCredentialsRequest& WithTableArn(const char* value) { SetTableArn(value); return *this;} /** *

A list of partition values identifying a single partition.

*/ inline const PartitionValueList& GetPartition() const{ return m_partition; } /** *

A list of partition values identifying a single partition.

*/ inline bool PartitionHasBeenSet() const { return m_partitionHasBeenSet; } /** *

A list of partition values identifying a single partition.

*/ inline void SetPartition(const PartitionValueList& value) { m_partitionHasBeenSet = true; m_partition = value; } /** *

A list of partition values identifying a single partition.

*/ inline void SetPartition(PartitionValueList&& value) { m_partitionHasBeenSet = true; m_partition = std::move(value); } /** *

A list of partition values identifying a single partition.

*/ inline GetTemporaryGluePartitionCredentialsRequest& WithPartition(const PartitionValueList& value) { SetPartition(value); return *this;} /** *

A list of partition values identifying a single partition.

*/ inline GetTemporaryGluePartitionCredentialsRequest& WithPartition(PartitionValueList&& value) { SetPartition(std::move(value)); return *this;} /** *

Filters the request based on the user having been granted a list of specified * permissions on the requested resource(s).

*/ inline const Aws::Vector& GetPermissions() const{ return m_permissions; } /** *

Filters the request based on the user having been granted a list of specified * permissions on the requested resource(s).

*/ inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; } /** *

Filters the request based on the user having been granted a list of specified * permissions on the requested resource(s).

*/ inline void SetPermissions(const Aws::Vector& value) { m_permissionsHasBeenSet = true; m_permissions = value; } /** *

Filters the request based on the user having been granted a list of specified * permissions on the requested resource(s).

*/ inline void SetPermissions(Aws::Vector&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); } /** *

Filters the request based on the user having been granted a list of specified * permissions on the requested resource(s).

*/ inline GetTemporaryGluePartitionCredentialsRequest& WithPermissions(const Aws::Vector& value) { SetPermissions(value); return *this;} /** *

Filters the request based on the user having been granted a list of specified * permissions on the requested resource(s).

*/ inline GetTemporaryGluePartitionCredentialsRequest& WithPermissions(Aws::Vector&& value) { SetPermissions(std::move(value)); return *this;} /** *

Filters the request based on the user having been granted a list of specified * permissions on the requested resource(s).

*/ inline GetTemporaryGluePartitionCredentialsRequest& AddPermissions(const Permission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; } /** *

Filters the request based on the user having been granted a list of specified * permissions on the requested resource(s).

*/ inline GetTemporaryGluePartitionCredentialsRequest& AddPermissions(Permission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; } /** *

The time period, between 900 and 21,600 seconds, for the timeout of the * temporary credentials.

*/ inline int GetDurationSeconds() const{ return m_durationSeconds; } /** *

The time period, between 900 and 21,600 seconds, for the timeout of the * temporary credentials.

*/ inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; } /** *

The time period, between 900 and 21,600 seconds, for the timeout of the * temporary credentials.

*/ inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; } /** *

The time period, between 900 and 21,600 seconds, for the timeout of the * temporary credentials.

*/ inline GetTemporaryGluePartitionCredentialsRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;} /** *

A structure representing context to access a resource (column names, query * ID, etc).

*/ inline const AuditContext& GetAuditContext() const{ return m_auditContext; } /** *

A structure representing context to access a resource (column names, query * ID, etc).

*/ inline bool AuditContextHasBeenSet() const { return m_auditContextHasBeenSet; } /** *

A structure representing context to access a resource (column names, query * ID, etc).

*/ inline void SetAuditContext(const AuditContext& value) { m_auditContextHasBeenSet = true; m_auditContext = value; } /** *

A structure representing context to access a resource (column names, query * ID, etc).

*/ inline void SetAuditContext(AuditContext&& value) { m_auditContextHasBeenSet = true; m_auditContext = std::move(value); } /** *

A structure representing context to access a resource (column names, query * ID, etc).

*/ inline GetTemporaryGluePartitionCredentialsRequest& WithAuditContext(const AuditContext& value) { SetAuditContext(value); return *this;} /** *

A structure representing context to access a resource (column names, query * ID, etc).

*/ inline GetTemporaryGluePartitionCredentialsRequest& WithAuditContext(AuditContext&& value) { SetAuditContext(std::move(value)); return *this;} /** *

A list of supported permission types for the partition. Valid values are * COLUMN_PERMISSION and CELL_FILTER_PERMISSION.

*/ inline const Aws::Vector& GetSupportedPermissionTypes() const{ return m_supportedPermissionTypes; } /** *

A list of supported permission types for the partition. Valid values are * COLUMN_PERMISSION and CELL_FILTER_PERMISSION.

*/ inline bool SupportedPermissionTypesHasBeenSet() const { return m_supportedPermissionTypesHasBeenSet; } /** *

A list of supported permission types for the partition. Valid values are * COLUMN_PERMISSION and CELL_FILTER_PERMISSION.

*/ inline void SetSupportedPermissionTypes(const Aws::Vector& value) { m_supportedPermissionTypesHasBeenSet = true; m_supportedPermissionTypes = value; } /** *

A list of supported permission types for the partition. Valid values are * COLUMN_PERMISSION and CELL_FILTER_PERMISSION.

*/ inline void SetSupportedPermissionTypes(Aws::Vector&& value) { m_supportedPermissionTypesHasBeenSet = true; m_supportedPermissionTypes = std::move(value); } /** *

A list of supported permission types for the partition. Valid values are * COLUMN_PERMISSION and CELL_FILTER_PERMISSION.

*/ inline GetTemporaryGluePartitionCredentialsRequest& WithSupportedPermissionTypes(const Aws::Vector& value) { SetSupportedPermissionTypes(value); return *this;} /** *

A list of supported permission types for the partition. Valid values are * COLUMN_PERMISSION and CELL_FILTER_PERMISSION.

*/ inline GetTemporaryGluePartitionCredentialsRequest& WithSupportedPermissionTypes(Aws::Vector&& value) { SetSupportedPermissionTypes(std::move(value)); return *this;} /** *

A list of supported permission types for the partition. Valid values are * COLUMN_PERMISSION and CELL_FILTER_PERMISSION.

*/ inline GetTemporaryGluePartitionCredentialsRequest& AddSupportedPermissionTypes(const PermissionType& value) { m_supportedPermissionTypesHasBeenSet = true; m_supportedPermissionTypes.push_back(value); return *this; } /** *

A list of supported permission types for the partition. Valid values are * COLUMN_PERMISSION and CELL_FILTER_PERMISSION.

*/ inline GetTemporaryGluePartitionCredentialsRequest& AddSupportedPermissionTypes(PermissionType&& value) { m_supportedPermissionTypesHasBeenSet = true; m_supportedPermissionTypes.push_back(std::move(value)); return *this; } private: Aws::String m_tableArn; bool m_tableArnHasBeenSet = false; PartitionValueList m_partition; bool m_partitionHasBeenSet = false; Aws::Vector m_permissions; bool m_permissionsHasBeenSet = false; int m_durationSeconds; bool m_durationSecondsHasBeenSet = false; AuditContext m_auditContext; bool m_auditContextHasBeenSet = false; Aws::Vector m_supportedPermissionTypes; bool m_supportedPermissionTypesHasBeenSet = false; }; } // namespace Model } // namespace LakeFormation } // namespace Aws