/** * 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 PrometheusService { namespace Model { /** *

Represents the input of a ListRuleGroupsNamespaces operation.

See * Also:

AWS * API Reference

*/ class ListRuleGroupsNamespacesRequest : public PrometheusServiceRequest { public: AWS_PROMETHEUSSERVICE_API ListRuleGroupsNamespacesRequest(); // 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 "ListRuleGroupsNamespaces"; } AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override; AWS_PROMETHEUSSERVICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The ID of the workspace.

*/ inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } /** *

The ID of the workspace.

*/ inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } /** *

The ID of the workspace.

*/ inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } /** *

The ID of the workspace.

*/ inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } /** *

The ID of the workspace.

*/ inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } /** *

The ID of the workspace.

*/ inline ListRuleGroupsNamespacesRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} /** *

The ID of the workspace.

*/ inline ListRuleGroupsNamespacesRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} /** *

The ID of the workspace.

*/ inline ListRuleGroupsNamespacesRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} /** *

Optional filter for rule groups namespace name. Only the rule groups * namespace that begin with this value will be returned.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

Optional filter for rule groups namespace name. Only the rule groups * namespace that begin with this value will be returned.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

Optional filter for rule groups namespace name. Only the rule groups * namespace that begin with this value will be returned.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

Optional filter for rule groups namespace name. Only the rule groups * namespace that begin with this value will be returned.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

Optional filter for rule groups namespace name. Only the rule groups * namespace that begin with this value will be returned.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

Optional filter for rule groups namespace name. Only the rule groups * namespace that begin with this value will be returned.

*/ inline ListRuleGroupsNamespacesRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

Optional filter for rule groups namespace name. Only the rule groups * namespace that begin with this value will be returned.

*/ inline ListRuleGroupsNamespacesRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

Optional filter for rule groups namespace name. Only the rule groups * namespace that begin with this value will be returned.

*/ inline ListRuleGroupsNamespacesRequest& WithName(const char* value) { SetName(value); return *this;} /** *

Pagination token to request the next page in a paginated list. This token is * obtained from the output of the previous ListRuleGroupsNamespaces request.

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

Pagination token to request the next page in a paginated list. This token is * obtained from the output of the previous ListRuleGroupsNamespaces request.

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

Pagination token to request the next page in a paginated list. This token is * obtained from the output of the previous ListRuleGroupsNamespaces request.

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

Pagination token to request the next page in a paginated list. This token is * obtained from the output of the previous ListRuleGroupsNamespaces request.

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

Pagination token to request the next page in a paginated list. This token is * obtained from the output of the previous ListRuleGroupsNamespaces request.

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

Pagination token to request the next page in a paginated list. This token is * obtained from the output of the previous ListRuleGroupsNamespaces request.

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

Pagination token to request the next page in a paginated list. This token is * obtained from the output of the previous ListRuleGroupsNamespaces request.

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

Pagination token to request the next page in a paginated list. This token is * obtained from the output of the previous ListRuleGroupsNamespaces request.

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

Maximum results to return in response (default=100, maximum=1000).

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

Maximum results to return in response (default=100, maximum=1000).

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

Maximum results to return in response (default=100, maximum=1000).

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

Maximum results to return in response (default=100, maximum=1000).

*/ inline ListRuleGroupsNamespacesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_workspaceId; bool m_workspaceIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace PrometheusService } // namespace Aws