/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace VPCLattice { namespace Model { /** */ class ListRulesRequest : public VPCLatticeRequest { public: AWS_VPCLATTICE_API ListRulesRequest(); // 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 "ListRules"; } AWS_VPCLATTICE_API Aws::String SerializePayload() const override; AWS_VPCLATTICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The ID or Amazon Resource Name (ARN) of the listener.

*/ inline const Aws::String& GetListenerIdentifier() const{ return m_listenerIdentifier; } /** *

The ID or Amazon Resource Name (ARN) of the listener.

*/ inline bool ListenerIdentifierHasBeenSet() const { return m_listenerIdentifierHasBeenSet; } /** *

The ID or Amazon Resource Name (ARN) of the listener.

*/ inline void SetListenerIdentifier(const Aws::String& value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier = value; } /** *

The ID or Amazon Resource Name (ARN) of the listener.

*/ inline void SetListenerIdentifier(Aws::String&& value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier = std::move(value); } /** *

The ID or Amazon Resource Name (ARN) of the listener.

*/ inline void SetListenerIdentifier(const char* value) { m_listenerIdentifierHasBeenSet = true; m_listenerIdentifier.assign(value); } /** *

The ID or Amazon Resource Name (ARN) of the listener.

*/ inline ListRulesRequest& WithListenerIdentifier(const Aws::String& value) { SetListenerIdentifier(value); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the listener.

*/ inline ListRulesRequest& WithListenerIdentifier(Aws::String&& value) { SetListenerIdentifier(std::move(value)); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the listener.

*/ inline ListRulesRequest& WithListenerIdentifier(const char* value) { SetListenerIdentifier(value); return *this;} /** *

The maximum number of results to return.

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

The maximum number of results to return.

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

The maximum number of results to return.

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

The maximum number of results to return.

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

A pagination token for the next page of results.

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

A pagination token for the next page of results.

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

A pagination token for the next page of results.

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

A pagination token for the next page of results.

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

A pagination token for the next page of results.

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

A pagination token for the next page of results.

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

A pagination token for the next page of results.

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

A pagination token for the next page of results.

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

The ID or Amazon Resource Name (ARN) of the service.

*/ inline const Aws::String& GetServiceIdentifier() const{ return m_serviceIdentifier; } /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline bool ServiceIdentifierHasBeenSet() const { return m_serviceIdentifierHasBeenSet; } /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline void SetServiceIdentifier(const Aws::String& value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier = value; } /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline void SetServiceIdentifier(Aws::String&& value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier = std::move(value); } /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline void SetServiceIdentifier(const char* value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier.assign(value); } /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline ListRulesRequest& WithServiceIdentifier(const Aws::String& value) { SetServiceIdentifier(value); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline ListRulesRequest& WithServiceIdentifier(Aws::String&& value) { SetServiceIdentifier(std::move(value)); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline ListRulesRequest& WithServiceIdentifier(const char* value) { SetServiceIdentifier(value); return *this;} private: Aws::String m_listenerIdentifier; bool m_listenerIdentifierHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_serviceIdentifier; bool m_serviceIdentifierHasBeenSet = false; }; } // namespace Model } // namespace VPCLattice } // namespace Aws