/** * 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 CodeStarconnections { namespace Model { /** */ class ListConnectionsRequest : public CodeStarconnectionsRequest { public: AWS_CODESTARCONNECTIONS_API ListConnectionsRequest(); // 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 "ListConnections"; } AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override; AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Filters the list of connections to those associated with a specified * provider, such as Bitbucket.

*/ inline const ProviderType& GetProviderTypeFilter() const{ return m_providerTypeFilter; } /** *

Filters the list of connections to those associated with a specified * provider, such as Bitbucket.

*/ inline bool ProviderTypeFilterHasBeenSet() const { return m_providerTypeFilterHasBeenSet; } /** *

Filters the list of connections to those associated with a specified * provider, such as Bitbucket.

*/ inline void SetProviderTypeFilter(const ProviderType& value) { m_providerTypeFilterHasBeenSet = true; m_providerTypeFilter = value; } /** *

Filters the list of connections to those associated with a specified * provider, such as Bitbucket.

*/ inline void SetProviderTypeFilter(ProviderType&& value) { m_providerTypeFilterHasBeenSet = true; m_providerTypeFilter = std::move(value); } /** *

Filters the list of connections to those associated with a specified * provider, such as Bitbucket.

*/ inline ListConnectionsRequest& WithProviderTypeFilter(const ProviderType& value) { SetProviderTypeFilter(value); return *this;} /** *

Filters the list of connections to those associated with a specified * provider, such as Bitbucket.

*/ inline ListConnectionsRequest& WithProviderTypeFilter(ProviderType&& value) { SetProviderTypeFilter(std::move(value)); return *this;} /** *

Filters the list of connections to those associated with a specified * host.

*/ inline const Aws::String& GetHostArnFilter() const{ return m_hostArnFilter; } /** *

Filters the list of connections to those associated with a specified * host.

*/ inline bool HostArnFilterHasBeenSet() const { return m_hostArnFilterHasBeenSet; } /** *

Filters the list of connections to those associated with a specified * host.

*/ inline void SetHostArnFilter(const Aws::String& value) { m_hostArnFilterHasBeenSet = true; m_hostArnFilter = value; } /** *

Filters the list of connections to those associated with a specified * host.

*/ inline void SetHostArnFilter(Aws::String&& value) { m_hostArnFilterHasBeenSet = true; m_hostArnFilter = std::move(value); } /** *

Filters the list of connections to those associated with a specified * host.

*/ inline void SetHostArnFilter(const char* value) { m_hostArnFilterHasBeenSet = true; m_hostArnFilter.assign(value); } /** *

Filters the list of connections to those associated with a specified * host.

*/ inline ListConnectionsRequest& WithHostArnFilter(const Aws::String& value) { SetHostArnFilter(value); return *this;} /** *

Filters the list of connections to those associated with a specified * host.

*/ inline ListConnectionsRequest& WithHostArnFilter(Aws::String&& value) { SetHostArnFilter(std::move(value)); return *this;} /** *

Filters the list of connections to those associated with a specified * host.

*/ inline ListConnectionsRequest& WithHostArnFilter(const char* value) { SetHostArnFilter(value); return *this;} /** *

The maximum number of results to return in a single call. To retrieve the * remaining results, make another call with the returned nextToken * value.

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

The maximum number of results to return in a single call. To retrieve the * remaining results, make another call with the returned nextToken * value.

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

The maximum number of results to return in a single call. To retrieve the * remaining results, make another call with the returned nextToken * value.

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

The maximum number of results to return in a single call. To retrieve the * remaining results, make another call with the returned nextToken * value.

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

The token that was returned from the previous ListConnections * call, which can be used to return the next set of connections in the list.

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

The token that was returned from the previous ListConnections * call, which can be used to return the next set of connections in the list.

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

The token that was returned from the previous ListConnections * call, which can be used to return the next set of connections in the list.

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

The token that was returned from the previous ListConnections * call, which can be used to return the next set of connections in the list.

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

The token that was returned from the previous ListConnections * call, which can be used to return the next set of connections in the list.

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

The token that was returned from the previous ListConnections * call, which can be used to return the next set of connections in the list.

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

The token that was returned from the previous ListConnections * call, which can be used to return the next set of connections in the list.

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

The token that was returned from the previous ListConnections * call, which can be used to return the next set of connections in the list.

*/ inline ListConnectionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: ProviderType m_providerTypeFilter; bool m_providerTypeFilterHasBeenSet = false; Aws::String m_hostArnFilter; bool m_hostArnFilterHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace CodeStarconnections } // namespace Aws