/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace DirectoryService { namespace Model { /** *

Describes the trust relationships for a particular Managed Microsoft AD * directory. If no input parameters are provided, such as directory ID or trust * ID, this request describes all the trust relationships.

See Also:

* AWS * API Reference

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

The Directory ID of the Amazon Web Services directory that is a part of the * requested trust relationship.

*/ inline const Aws::String& GetDirectoryId() const{ return m_directoryId; } /** *

The Directory ID of the Amazon Web Services directory that is a part of the * requested trust relationship.

*/ inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; } /** *

The Directory ID of the Amazon Web Services directory that is a part of the * requested trust relationship.

*/ inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; } /** *

The Directory ID of the Amazon Web Services directory that is a part of the * requested trust relationship.

*/ inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); } /** *

The Directory ID of the Amazon Web Services directory that is a part of the * requested trust relationship.

*/ inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); } /** *

The Directory ID of the Amazon Web Services directory that is a part of the * requested trust relationship.

*/ inline DescribeTrustsRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;} /** *

The Directory ID of the Amazon Web Services directory that is a part of the * requested trust relationship.

*/ inline DescribeTrustsRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;} /** *

The Directory ID of the Amazon Web Services directory that is a part of the * requested trust relationship.

*/ inline DescribeTrustsRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;} /** *

A list of identifiers of the trust relationships for which to obtain the * information. If this member is null, all trust relationships that belong to the * current account are returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline const Aws::Vector& GetTrustIds() const{ return m_trustIds; } /** *

A list of identifiers of the trust relationships for which to obtain the * information. If this member is null, all trust relationships that belong to the * current account are returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline bool TrustIdsHasBeenSet() const { return m_trustIdsHasBeenSet; } /** *

A list of identifiers of the trust relationships for which to obtain the * information. If this member is null, all trust relationships that belong to the * current account are returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline void SetTrustIds(const Aws::Vector& value) { m_trustIdsHasBeenSet = true; m_trustIds = value; } /** *

A list of identifiers of the trust relationships for which to obtain the * information. If this member is null, all trust relationships that belong to the * current account are returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline void SetTrustIds(Aws::Vector&& value) { m_trustIdsHasBeenSet = true; m_trustIds = std::move(value); } /** *

A list of identifiers of the trust relationships for which to obtain the * information. If this member is null, all trust relationships that belong to the * current account are returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline DescribeTrustsRequest& WithTrustIds(const Aws::Vector& value) { SetTrustIds(value); return *this;} /** *

A list of identifiers of the trust relationships for which to obtain the * information. If this member is null, all trust relationships that belong to the * current account are returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline DescribeTrustsRequest& WithTrustIds(Aws::Vector&& value) { SetTrustIds(std::move(value)); return *this;} /** *

A list of identifiers of the trust relationships for which to obtain the * information. If this member is null, all trust relationships that belong to the * current account are returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline DescribeTrustsRequest& AddTrustIds(const Aws::String& value) { m_trustIdsHasBeenSet = true; m_trustIds.push_back(value); return *this; } /** *

A list of identifiers of the trust relationships for which to obtain the * information. If this member is null, all trust relationships that belong to the * current account are returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline DescribeTrustsRequest& AddTrustIds(Aws::String&& value) { m_trustIdsHasBeenSet = true; m_trustIds.push_back(std::move(value)); return *this; } /** *

A list of identifiers of the trust relationships for which to obtain the * information. If this member is null, all trust relationships that belong to the * current account are returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline DescribeTrustsRequest& AddTrustIds(const char* value) { m_trustIdsHasBeenSet = true; m_trustIds.push_back(value); return *this; } /** *

The DescribeTrustsResult.NextToken value from a previous call to * DescribeTrusts. Pass null if this is the first call.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The DescribeTrustsResult.NextToken value from a previous call to * DescribeTrusts. Pass null if this is the first call.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The DescribeTrustsResult.NextToken value from a previous call to * DescribeTrusts. Pass null if this is the first call.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The DescribeTrustsResult.NextToken value from a previous call to * DescribeTrusts. Pass null if this is the first call.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The DescribeTrustsResult.NextToken value from a previous call to * DescribeTrusts. Pass null if this is the first call.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The DescribeTrustsResult.NextToken value from a previous call to * DescribeTrusts. Pass null if this is the first call.

*/ inline DescribeTrustsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The DescribeTrustsResult.NextToken value from a previous call to * DescribeTrusts. Pass null if this is the first call.

*/ inline DescribeTrustsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The DescribeTrustsResult.NextToken value from a previous call to * DescribeTrusts. Pass null if this is the first call.

*/ inline DescribeTrustsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of objects to return.

*/ inline int GetLimit() const{ return m_limit; } /** *

The maximum number of objects to return.

*/ inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; } /** *

The maximum number of objects to return.

*/ inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; } /** *

The maximum number of objects to return.

*/ inline DescribeTrustsRequest& WithLimit(int value) { SetLimit(value); return *this;} private: Aws::String m_directoryId; bool m_directoryIdHasBeenSet = false; Aws::Vector m_trustIds; bool m_trustIdsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_limit; bool m_limitHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws