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

Returns the identifier of the directory in the directory owner account.

*/ inline const Aws::String& GetOwnerDirectoryId() const{ return m_ownerDirectoryId; } /** *

Returns the identifier of the directory in the directory owner account.

*/ inline bool OwnerDirectoryIdHasBeenSet() const { return m_ownerDirectoryIdHasBeenSet; } /** *

Returns the identifier of the directory in the directory owner account.

*/ inline void SetOwnerDirectoryId(const Aws::String& value) { m_ownerDirectoryIdHasBeenSet = true; m_ownerDirectoryId = value; } /** *

Returns the identifier of the directory in the directory owner account.

*/ inline void SetOwnerDirectoryId(Aws::String&& value) { m_ownerDirectoryIdHasBeenSet = true; m_ownerDirectoryId = std::move(value); } /** *

Returns the identifier of the directory in the directory owner account.

*/ inline void SetOwnerDirectoryId(const char* value) { m_ownerDirectoryIdHasBeenSet = true; m_ownerDirectoryId.assign(value); } /** *

Returns the identifier of the directory in the directory owner account.

*/ inline DescribeSharedDirectoriesRequest& WithOwnerDirectoryId(const Aws::String& value) { SetOwnerDirectoryId(value); return *this;} /** *

Returns the identifier of the directory in the directory owner account.

*/ inline DescribeSharedDirectoriesRequest& WithOwnerDirectoryId(Aws::String&& value) { SetOwnerDirectoryId(std::move(value)); return *this;} /** *

Returns the identifier of the directory in the directory owner account.

*/ inline DescribeSharedDirectoriesRequest& WithOwnerDirectoryId(const char* value) { SetOwnerDirectoryId(value); return *this;} /** *

A list of identifiers of all shared directories in your account.

*/ inline const Aws::Vector& GetSharedDirectoryIds() const{ return m_sharedDirectoryIds; } /** *

A list of identifiers of all shared directories in your account.

*/ inline bool SharedDirectoryIdsHasBeenSet() const { return m_sharedDirectoryIdsHasBeenSet; } /** *

A list of identifiers of all shared directories in your account.

*/ inline void SetSharedDirectoryIds(const Aws::Vector& value) { m_sharedDirectoryIdsHasBeenSet = true; m_sharedDirectoryIds = value; } /** *

A list of identifiers of all shared directories in your account.

*/ inline void SetSharedDirectoryIds(Aws::Vector&& value) { m_sharedDirectoryIdsHasBeenSet = true; m_sharedDirectoryIds = std::move(value); } /** *

A list of identifiers of all shared directories in your account.

*/ inline DescribeSharedDirectoriesRequest& WithSharedDirectoryIds(const Aws::Vector& value) { SetSharedDirectoryIds(value); return *this;} /** *

A list of identifiers of all shared directories in your account.

*/ inline DescribeSharedDirectoriesRequest& WithSharedDirectoryIds(Aws::Vector&& value) { SetSharedDirectoryIds(std::move(value)); return *this;} /** *

A list of identifiers of all shared directories in your account.

*/ inline DescribeSharedDirectoriesRequest& AddSharedDirectoryIds(const Aws::String& value) { m_sharedDirectoryIdsHasBeenSet = true; m_sharedDirectoryIds.push_back(value); return *this; } /** *

A list of identifiers of all shared directories in your account.

*/ inline DescribeSharedDirectoriesRequest& AddSharedDirectoryIds(Aws::String&& value) { m_sharedDirectoryIdsHasBeenSet = true; m_sharedDirectoryIds.push_back(std::move(value)); return *this; } /** *

A list of identifiers of all shared directories in your account.

*/ inline DescribeSharedDirectoriesRequest& AddSharedDirectoryIds(const char* value) { m_sharedDirectoryIdsHasBeenSet = true; m_sharedDirectoryIds.push_back(value); return *this; } /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The number of shared directories to return in the response object.

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

The number of shared directories to return in the response object.

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

The number of shared directories to return in the response object.

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

The number of shared directories to return in the response object.

*/ inline DescribeSharedDirectoriesRequest& WithLimit(int value) { SetLimit(value); return *this;} private: Aws::String m_ownerDirectoryId; bool m_ownerDirectoryIdHasBeenSet = false; Aws::Vector m_sharedDirectoryIds; bool m_sharedDirectoryIdsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_limit; bool m_limitHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws