/** * 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 CloudWatchEvents { namespace Model { /** */ class ListConnectionsRequest : public CloudWatchEventsRequest { public: AWS_CLOUDWATCHEVENTS_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_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A name prefix to filter results returned. Only connections with a name that * starts with the prefix are returned.

*/ inline const Aws::String& GetNamePrefix() const{ return m_namePrefix; } /** *

A name prefix to filter results returned. Only connections with a name that * starts with the prefix are returned.

*/ inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; } /** *

A name prefix to filter results returned. Only connections with a name that * starts with the prefix are returned.

*/ inline void SetNamePrefix(const Aws::String& value) { m_namePrefixHasBeenSet = true; m_namePrefix = value; } /** *

A name prefix to filter results returned. Only connections with a name that * starts with the prefix are returned.

*/ inline void SetNamePrefix(Aws::String&& value) { m_namePrefixHasBeenSet = true; m_namePrefix = std::move(value); } /** *

A name prefix to filter results returned. Only connections with a name that * starts with the prefix are returned.

*/ inline void SetNamePrefix(const char* value) { m_namePrefixHasBeenSet = true; m_namePrefix.assign(value); } /** *

A name prefix to filter results returned. Only connections with a name that * starts with the prefix are returned.

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

A name prefix to filter results returned. Only connections with a name that * starts with the prefix are returned.

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

A name prefix to filter results returned. Only connections with a name that * starts with the prefix are returned.

*/ inline ListConnectionsRequest& WithNamePrefix(const char* value) { SetNamePrefix(value); return *this;} /** *

The state of the connection.

*/ inline const ConnectionState& GetConnectionState() const{ return m_connectionState; } /** *

The state of the connection.

*/ inline bool ConnectionStateHasBeenSet() const { return m_connectionStateHasBeenSet; } /** *

The state of the connection.

*/ inline void SetConnectionState(const ConnectionState& value) { m_connectionStateHasBeenSet = true; m_connectionState = value; } /** *

The state of the connection.

*/ inline void SetConnectionState(ConnectionState&& value) { m_connectionStateHasBeenSet = true; m_connectionState = std::move(value); } /** *

The state of the connection.

*/ inline ListConnectionsRequest& WithConnectionState(const ConnectionState& value) { SetConnectionState(value); return *this;} /** *

The state of the connection.

*/ inline ListConnectionsRequest& WithConnectionState(ConnectionState&& value) { SetConnectionState(std::move(value)); return *this;} /** *

The token returned by a previous call to retrieve the next set of * results.

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

The token returned by a previous call to retrieve the next set of * results.

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

The token returned by a previous call to retrieve the next set of * results.

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

The token returned by a previous call to retrieve the next set of * results.

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

The token returned by a previous call to retrieve the next set of * results.

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

The token returned by a previous call to retrieve the next set of * results.

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

The token returned by a previous call to retrieve the next set of * results.

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

The token returned by a previous call to retrieve the next set of * results.

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

The maximum number of connections to return.

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

The maximum number of connections to return.

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

The maximum number of connections to return.

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

The maximum number of connections to return.

*/ inline ListConnectionsRequest& WithLimit(int value) { SetLimit(value); return *this;} private: Aws::String m_namePrefix; bool m_namePrefixHasBeenSet = false; ConnectionState m_connectionState; bool m_connectionStateHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_limit; bool m_limitHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws