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

The new role to use for the given resource registered in Lake Formation.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The new role to use for the given resource registered in Lake Formation.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The new role to use for the given resource registered in Lake Formation.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The new role to use for the given resource registered in Lake Formation.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The new role to use for the given resource registered in Lake Formation.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The new role to use for the given resource registered in Lake Formation.

*/ inline UpdateResourceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The new role to use for the given resource registered in Lake Formation.

*/ inline UpdateResourceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The new role to use for the given resource registered in Lake Formation.

*/ inline UpdateResourceRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The resource ARN.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The resource ARN.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The resource ARN.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The resource ARN.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The resource ARN.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The resource ARN.

*/ inline UpdateResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The resource ARN.

*/ inline UpdateResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The resource ARN.

*/ inline UpdateResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

Whether or not the resource is a federated resource.

*/ inline bool GetWithFederation() const{ return m_withFederation; } /** *

Whether or not the resource is a federated resource.

*/ inline bool WithFederationHasBeenSet() const { return m_withFederationHasBeenSet; } /** *

Whether or not the resource is a federated resource.

*/ inline void SetWithFederation(bool value) { m_withFederationHasBeenSet = true; m_withFederation = value; } /** *

Whether or not the resource is a federated resource.

*/ inline UpdateResourceRequest& WithWithFederation(bool value) { SetWithFederation(value); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; bool m_withFederation; bool m_withFederationHasBeenSet = false; }; } // namespace Model } // namespace LakeFormation } // namespace Aws