/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace PrometheusService { namespace Model { /** *

Represents the input of a PutRuleGroupsNamespace operation.

See * Also:

AWS * API Reference

*/ class PutRuleGroupsNamespaceRequest : public PrometheusServiceRequest { public: AWS_PROMETHEUSSERVICE_API PutRuleGroupsNamespaceRequest(); // 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 "PutRuleGroupsNamespace"; } AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override; /** *

The ID of the workspace in which to update the rule group namespace.

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

The ID of the workspace in which to update the rule group namespace.

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

The ID of the workspace in which to update the rule group namespace.

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

The ID of the workspace in which to update the rule group namespace.

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

The ID of the workspace in which to update the rule group namespace.

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

The ID of the workspace in which to update the rule group namespace.

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

The ID of the workspace in which to update the rule group namespace.

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

The ID of the workspace in which to update the rule group namespace.

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

The rule groups namespace name.

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

The rule groups namespace name.

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

The rule groups namespace name.

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

The rule groups namespace name.

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

The rule groups namespace name.

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

The rule groups namespace name.

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

The rule groups namespace name.

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

The rule groups namespace name.

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

The namespace data that define the rule groups.

*/ inline const Aws::Utils::ByteBuffer& GetData() const{ return m_data; } /** *

The namespace data that define the rule groups.

*/ inline bool DataHasBeenSet() const { return m_dataHasBeenSet; } /** *

The namespace data that define the rule groups.

*/ inline void SetData(const Aws::Utils::ByteBuffer& value) { m_dataHasBeenSet = true; m_data = value; } /** *

The namespace data that define the rule groups.

*/ inline void SetData(Aws::Utils::ByteBuffer&& value) { m_dataHasBeenSet = true; m_data = std::move(value); } /** *

The namespace data that define the rule groups.

*/ inline PutRuleGroupsNamespaceRequest& WithData(const Aws::Utils::ByteBuffer& value) { SetData(value); return *this;} /** *

The namespace data that define the rule groups.

*/ inline PutRuleGroupsNamespaceRequest& WithData(Aws::Utils::ByteBuffer&& value) { SetData(std::move(value)); return *this;} /** *

Optional, unique, case-sensitive, user-provided identifier to ensure the * idempotency of the request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Optional, unique, case-sensitive, user-provided identifier to ensure the * idempotency of the request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Optional, unique, case-sensitive, user-provided identifier to ensure the * idempotency of the request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Optional, unique, case-sensitive, user-provided identifier to ensure the * idempotency of the request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Optional, unique, case-sensitive, user-provided identifier to ensure the * idempotency of the request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Optional, unique, case-sensitive, user-provided identifier to ensure the * idempotency of the request.

*/ inline PutRuleGroupsNamespaceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Optional, unique, case-sensitive, user-provided identifier to ensure the * idempotency of the request.

*/ inline PutRuleGroupsNamespaceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Optional, unique, case-sensitive, user-provided identifier to ensure the * idempotency of the request.

*/ inline PutRuleGroupsNamespaceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_workspaceId; bool m_workspaceIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Utils::ByteBuffer m_data; bool m_dataHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace PrometheusService } // namespace Aws