/** * 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 SecurityLake { namespace Model { /** */ class GetDataLakeSourcesRequest : public SecurityLakeRequest { public: AWS_SECURITYLAKE_API GetDataLakeSourcesRequest(); // 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 "GetDataLakeSources"; } AWS_SECURITYLAKE_API Aws::String SerializePayload() const override; /** *

The Amazon Web Services account ID for which a static snapshot of the current * Amazon Web Services Region, including enabled accounts and log sources, is * retrieved.

*/ inline const Aws::Vector& GetAccounts() const{ return m_accounts; } /** *

The Amazon Web Services account ID for which a static snapshot of the current * Amazon Web Services Region, including enabled accounts and log sources, is * retrieved.

*/ inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; } /** *

The Amazon Web Services account ID for which a static snapshot of the current * Amazon Web Services Region, including enabled accounts and log sources, is * retrieved.

*/ inline void SetAccounts(const Aws::Vector& value) { m_accountsHasBeenSet = true; m_accounts = value; } /** *

The Amazon Web Services account ID for which a static snapshot of the current * Amazon Web Services Region, including enabled accounts and log sources, is * retrieved.

*/ inline void SetAccounts(Aws::Vector&& value) { m_accountsHasBeenSet = true; m_accounts = std::move(value); } /** *

The Amazon Web Services account ID for which a static snapshot of the current * Amazon Web Services Region, including enabled accounts and log sources, is * retrieved.

*/ inline GetDataLakeSourcesRequest& WithAccounts(const Aws::Vector& value) { SetAccounts(value); return *this;} /** *

The Amazon Web Services account ID for which a static snapshot of the current * Amazon Web Services Region, including enabled accounts and log sources, is * retrieved.

*/ inline GetDataLakeSourcesRequest& WithAccounts(Aws::Vector&& value) { SetAccounts(std::move(value)); return *this;} /** *

The Amazon Web Services account ID for which a static snapshot of the current * Amazon Web Services Region, including enabled accounts and log sources, is * retrieved.

*/ inline GetDataLakeSourcesRequest& AddAccounts(const Aws::String& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; } /** *

The Amazon Web Services account ID for which a static snapshot of the current * Amazon Web Services Region, including enabled accounts and log sources, is * retrieved.

*/ inline GetDataLakeSourcesRequest& AddAccounts(Aws::String&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; } /** *

The Amazon Web Services account ID for which a static snapshot of the current * Amazon Web Services Region, including enabled accounts and log sources, is * retrieved.

*/ inline GetDataLakeSourcesRequest& AddAccounts(const char* value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; } /** *

The maximum limit of accounts for which the static snapshot of the current * Region, including enabled accounts and log sources, is retrieved.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum limit of accounts for which the static snapshot of the current * Region, including enabled accounts and log sources, is retrieved.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum limit of accounts for which the static snapshot of the current * Region, including enabled accounts and log sources, is retrieved.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum limit of accounts for which the static snapshot of the current * Region, including enabled accounts and log sources, is retrieved.

*/ inline GetDataLakeSourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

Lists if there are more results available. The value of nextToken is a unique * pagination token for each page. Repeat the call using the returned token to * retrieve the next page. Keep all other arguments unchanged.

Each * pagination token expires after 24 hours. Using an expired pagination token will * return an HTTP 400 InvalidToken error.

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

Lists if there are more results available. The value of nextToken is a unique * pagination token for each page. Repeat the call using the returned token to * retrieve the next page. Keep all other arguments unchanged.

Each * pagination token expires after 24 hours. Using an expired pagination token will * return an HTTP 400 InvalidToken error.

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

Lists if there are more results available. The value of nextToken is a unique * pagination token for each page. Repeat the call using the returned token to * retrieve the next page. Keep all other arguments unchanged.

Each * pagination token expires after 24 hours. Using an expired pagination token will * return an HTTP 400 InvalidToken error.

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

Lists if there are more results available. The value of nextToken is a unique * pagination token for each page. Repeat the call using the returned token to * retrieve the next page. Keep all other arguments unchanged.

Each * pagination token expires after 24 hours. Using an expired pagination token will * return an HTTP 400 InvalidToken error.

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

Lists if there are more results available. The value of nextToken is a unique * pagination token for each page. Repeat the call using the returned token to * retrieve the next page. Keep all other arguments unchanged.

Each * pagination token expires after 24 hours. Using an expired pagination token will * return an HTTP 400 InvalidToken error.

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

Lists if there are more results available. The value of nextToken is a unique * pagination token for each page. Repeat the call using the returned token to * retrieve the next page. Keep all other arguments unchanged.

Each * pagination token expires after 24 hours. Using an expired pagination token will * return an HTTP 400 InvalidToken error.

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

Lists if there are more results available. The value of nextToken is a unique * pagination token for each page. Repeat the call using the returned token to * retrieve the next page. Keep all other arguments unchanged.

Each * pagination token expires after 24 hours. Using an expired pagination token will * return an HTTP 400 InvalidToken error.

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

Lists if there are more results available. The value of nextToken is a unique * pagination token for each page. Repeat the call using the returned token to * retrieve the next page. Keep all other arguments unchanged.

Each * pagination token expires after 24 hours. Using an expired pagination token will * return an HTTP 400 InvalidToken error.

*/ inline GetDataLakeSourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_accounts; bool m_accountsHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace SecurityLake } // namespace Aws