/** * 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 IAM { namespace Model { /** */ class GetServiceLinkedRoleDeletionStatusRequest : public IAMRequest { public: AWS_IAM_API GetServiceLinkedRoleDeletionStatusRequest(); // 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 "GetServiceLinkedRoleDeletionStatus"; } AWS_IAM_API Aws::String SerializePayload() const override; protected: AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The deletion task identifier. This identifier is returned by the * DeleteServiceLinkedRole operation in the format * task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>.

*/ inline const Aws::String& GetDeletionTaskId() const{ return m_deletionTaskId; } /** *

The deletion task identifier. This identifier is returned by the * DeleteServiceLinkedRole operation in the format * task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>.

*/ inline bool DeletionTaskIdHasBeenSet() const { return m_deletionTaskIdHasBeenSet; } /** *

The deletion task identifier. This identifier is returned by the * DeleteServiceLinkedRole operation in the format * task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>.

*/ inline void SetDeletionTaskId(const Aws::String& value) { m_deletionTaskIdHasBeenSet = true; m_deletionTaskId = value; } /** *

The deletion task identifier. This identifier is returned by the * DeleteServiceLinkedRole operation in the format * task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>.

*/ inline void SetDeletionTaskId(Aws::String&& value) { m_deletionTaskIdHasBeenSet = true; m_deletionTaskId = std::move(value); } /** *

The deletion task identifier. This identifier is returned by the * DeleteServiceLinkedRole operation in the format * task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>.

*/ inline void SetDeletionTaskId(const char* value) { m_deletionTaskIdHasBeenSet = true; m_deletionTaskId.assign(value); } /** *

The deletion task identifier. This identifier is returned by the * DeleteServiceLinkedRole operation in the format * task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>.

*/ inline GetServiceLinkedRoleDeletionStatusRequest& WithDeletionTaskId(const Aws::String& value) { SetDeletionTaskId(value); return *this;} /** *

The deletion task identifier. This identifier is returned by the * DeleteServiceLinkedRole operation in the format * task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>.

*/ inline GetServiceLinkedRoleDeletionStatusRequest& WithDeletionTaskId(Aws::String&& value) { SetDeletionTaskId(std::move(value)); return *this;} /** *

The deletion task identifier. This identifier is returned by the * DeleteServiceLinkedRole operation in the format * task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>.

*/ inline GetServiceLinkedRoleDeletionStatusRequest& WithDeletionTaskId(const char* value) { SetDeletionTaskId(value); return *this;} private: Aws::String m_deletionTaskId; bool m_deletionTaskIdHasBeenSet = false; }; } // namespace Model } // namespace IAM } // namespace Aws