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

Deletes the local side of an existing trust relationship between the Managed * Microsoft AD directory and the external domain.

See Also:

AWS * API Reference

*/ class DeleteTrustRequest : public DirectoryServiceRequest { public: AWS_DIRECTORYSERVICE_API DeleteTrustRequest(); // 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 "DeleteTrust"; } AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override; AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Trust ID of the trust relationship to be deleted.

*/ inline const Aws::String& GetTrustId() const{ return m_trustId; } /** *

The Trust ID of the trust relationship to be deleted.

*/ inline bool TrustIdHasBeenSet() const { return m_trustIdHasBeenSet; } /** *

The Trust ID of the trust relationship to be deleted.

*/ inline void SetTrustId(const Aws::String& value) { m_trustIdHasBeenSet = true; m_trustId = value; } /** *

The Trust ID of the trust relationship to be deleted.

*/ inline void SetTrustId(Aws::String&& value) { m_trustIdHasBeenSet = true; m_trustId = std::move(value); } /** *

The Trust ID of the trust relationship to be deleted.

*/ inline void SetTrustId(const char* value) { m_trustIdHasBeenSet = true; m_trustId.assign(value); } /** *

The Trust ID of the trust relationship to be deleted.

*/ inline DeleteTrustRequest& WithTrustId(const Aws::String& value) { SetTrustId(value); return *this;} /** *

The Trust ID of the trust relationship to be deleted.

*/ inline DeleteTrustRequest& WithTrustId(Aws::String&& value) { SetTrustId(std::move(value)); return *this;} /** *

The Trust ID of the trust relationship to be deleted.

*/ inline DeleteTrustRequest& WithTrustId(const char* value) { SetTrustId(value); return *this;} /** *

Delete a conditional forwarder as part of a DeleteTrustRequest.

*/ inline bool GetDeleteAssociatedConditionalForwarder() const{ return m_deleteAssociatedConditionalForwarder; } /** *

Delete a conditional forwarder as part of a DeleteTrustRequest.

*/ inline bool DeleteAssociatedConditionalForwarderHasBeenSet() const { return m_deleteAssociatedConditionalForwarderHasBeenSet; } /** *

Delete a conditional forwarder as part of a DeleteTrustRequest.

*/ inline void SetDeleteAssociatedConditionalForwarder(bool value) { m_deleteAssociatedConditionalForwarderHasBeenSet = true; m_deleteAssociatedConditionalForwarder = value; } /** *

Delete a conditional forwarder as part of a DeleteTrustRequest.

*/ inline DeleteTrustRequest& WithDeleteAssociatedConditionalForwarder(bool value) { SetDeleteAssociatedConditionalForwarder(value); return *this;} private: Aws::String m_trustId; bool m_trustIdHasBeenSet = false; bool m_deleteAssociatedConditionalForwarder; bool m_deleteAssociatedConditionalForwarderHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws