/** * 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 CloudTrail { namespace Model { /** *

Removes CloudTrail delegated administrator permissions from a specified * member account in an organization that is currently designated as a delegated * administrator.

See Also:

AWS * API Reference

*/ class DeregisterOrganizationDelegatedAdminRequest : public CloudTrailRequest { public: AWS_CLOUDTRAIL_API DeregisterOrganizationDelegatedAdminRequest(); // 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 "DeregisterOrganizationDelegatedAdmin"; } AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override; AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A delegated administrator account ID. This is a member account in an * organization that is currently designated as a delegated administrator.

*/ inline const Aws::String& GetDelegatedAdminAccountId() const{ return m_delegatedAdminAccountId; } /** *

A delegated administrator account ID. This is a member account in an * organization that is currently designated as a delegated administrator.

*/ inline bool DelegatedAdminAccountIdHasBeenSet() const { return m_delegatedAdminAccountIdHasBeenSet; } /** *

A delegated administrator account ID. This is a member account in an * organization that is currently designated as a delegated administrator.

*/ inline void SetDelegatedAdminAccountId(const Aws::String& value) { m_delegatedAdminAccountIdHasBeenSet = true; m_delegatedAdminAccountId = value; } /** *

A delegated administrator account ID. This is a member account in an * organization that is currently designated as a delegated administrator.

*/ inline void SetDelegatedAdminAccountId(Aws::String&& value) { m_delegatedAdminAccountIdHasBeenSet = true; m_delegatedAdminAccountId = std::move(value); } /** *

A delegated administrator account ID. This is a member account in an * organization that is currently designated as a delegated administrator.

*/ inline void SetDelegatedAdminAccountId(const char* value) { m_delegatedAdminAccountIdHasBeenSet = true; m_delegatedAdminAccountId.assign(value); } /** *

A delegated administrator account ID. This is a member account in an * organization that is currently designated as a delegated administrator.

*/ inline DeregisterOrganizationDelegatedAdminRequest& WithDelegatedAdminAccountId(const Aws::String& value) { SetDelegatedAdminAccountId(value); return *this;} /** *

A delegated administrator account ID. This is a member account in an * organization that is currently designated as a delegated administrator.

*/ inline DeregisterOrganizationDelegatedAdminRequest& WithDelegatedAdminAccountId(Aws::String&& value) { SetDelegatedAdminAccountId(std::move(value)); return *this;} /** *

A delegated administrator account ID. This is a member account in an * organization that is currently designated as a delegated administrator.

*/ inline DeregisterOrganizationDelegatedAdminRequest& WithDelegatedAdminAccountId(const char* value) { SetDelegatedAdminAccountId(value); return *this;} private: Aws::String m_delegatedAdminAccountId; bool m_delegatedAdminAccountIdHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws