/** * 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 SSOAdmin { namespace Model { /** */ class DetachManagedPolicyFromPermissionSetRequest : public SSOAdminRequest { public: AWS_SSOADMIN_API DetachManagedPolicyFromPermissionSetRequest(); // 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 "DetachManagedPolicyFromPermissionSet"; } AWS_SSOADMIN_API Aws::String SerializePayload() const override; AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; } /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; } /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; } /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); } /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); } /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline DetachManagedPolicyFromPermissionSetRequest& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;} /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline DetachManagedPolicyFromPermissionSetRequest& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;} /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline DetachManagedPolicyFromPermissionSetRequest& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;} /** *

The ARN of the PermissionSet from which the policy should be * detached.

*/ inline const Aws::String& GetPermissionSetArn() const{ return m_permissionSetArn; } /** *

The ARN of the PermissionSet from which the policy should be * detached.

*/ inline bool PermissionSetArnHasBeenSet() const { return m_permissionSetArnHasBeenSet; } /** *

The ARN of the PermissionSet from which the policy should be * detached.

*/ inline void SetPermissionSetArn(const Aws::String& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = value; } /** *

The ARN of the PermissionSet from which the policy should be * detached.

*/ inline void SetPermissionSetArn(Aws::String&& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = std::move(value); } /** *

The ARN of the PermissionSet from which the policy should be * detached.

*/ inline void SetPermissionSetArn(const char* value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn.assign(value); } /** *

The ARN of the PermissionSet from which the policy should be * detached.

*/ inline DetachManagedPolicyFromPermissionSetRequest& WithPermissionSetArn(const Aws::String& value) { SetPermissionSetArn(value); return *this;} /** *

The ARN of the PermissionSet from which the policy should be * detached.

*/ inline DetachManagedPolicyFromPermissionSetRequest& WithPermissionSetArn(Aws::String&& value) { SetPermissionSetArn(std::move(value)); return *this;} /** *

The ARN of the PermissionSet from which the policy should be * detached.

*/ inline DetachManagedPolicyFromPermissionSetRequest& WithPermissionSetArn(const char* value) { SetPermissionSetArn(value); return *this;} /** *

The AWS managed policy ARN to be detached from a permission set.

*/ inline const Aws::String& GetManagedPolicyArn() const{ return m_managedPolicyArn; } /** *

The AWS managed policy ARN to be detached from a permission set.

*/ inline bool ManagedPolicyArnHasBeenSet() const { return m_managedPolicyArnHasBeenSet; } /** *

The AWS managed policy ARN to be detached from a permission set.

*/ inline void SetManagedPolicyArn(const Aws::String& value) { m_managedPolicyArnHasBeenSet = true; m_managedPolicyArn = value; } /** *

The AWS managed policy ARN to be detached from a permission set.

*/ inline void SetManagedPolicyArn(Aws::String&& value) { m_managedPolicyArnHasBeenSet = true; m_managedPolicyArn = std::move(value); } /** *

The AWS managed policy ARN to be detached from a permission set.

*/ inline void SetManagedPolicyArn(const char* value) { m_managedPolicyArnHasBeenSet = true; m_managedPolicyArn.assign(value); } /** *

The AWS managed policy ARN to be detached from a permission set.

*/ inline DetachManagedPolicyFromPermissionSetRequest& WithManagedPolicyArn(const Aws::String& value) { SetManagedPolicyArn(value); return *this;} /** *

The AWS managed policy ARN to be detached from a permission set.

*/ inline DetachManagedPolicyFromPermissionSetRequest& WithManagedPolicyArn(Aws::String&& value) { SetManagedPolicyArn(std::move(value)); return *this;} /** *

The AWS managed policy ARN to be detached from a permission set.

*/ inline DetachManagedPolicyFromPermissionSetRequest& WithManagedPolicyArn(const char* value) { SetManagedPolicyArn(value); return *this;} private: Aws::String m_instanceArn; bool m_instanceArnHasBeenSet = false; Aws::String m_permissionSetArn; bool m_permissionSetArnHasBeenSet = false; Aws::String m_managedPolicyArn; bool m_managedPolicyArnHasBeenSet = false; }; } // namespace Model } // namespace SSOAdmin } // namespace Aws