/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace PrometheusService { namespace Model { /** *

Represents the output of a CreateRuleGroupsNamespace operation.

See * Also:

AWS * API Reference

*/ class CreateRuleGroupsNamespaceResult { public: AWS_PROMETHEUSSERVICE_API CreateRuleGroupsNamespaceResult(); AWS_PROMETHEUSSERVICE_API CreateRuleGroupsNamespaceResult(const Aws::AmazonWebServiceResult& result); AWS_PROMETHEUSSERVICE_API CreateRuleGroupsNamespaceResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The rule groups namespace name.

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

The rule groups namespace name.

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

The rule groups namespace name.

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

The rule groups namespace name.

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

The rule groups namespace name.

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

The rule groups namespace name.

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

The rule groups namespace name.

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

The Amazon Resource Name (ARN) of this rule groups namespace.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of this rule groups namespace.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The Amazon Resource Name (ARN) of this rule groups namespace.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of this rule groups namespace.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of this rule groups namespace.

*/ inline CreateRuleGroupsNamespaceResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of this rule groups namespace.

*/ inline CreateRuleGroupsNamespaceResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of this rule groups namespace.

*/ inline CreateRuleGroupsNamespaceResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The status of rule groups namespace.

*/ inline const RuleGroupsNamespaceStatus& GetStatus() const{ return m_status; } /** *

The status of rule groups namespace.

*/ inline void SetStatus(const RuleGroupsNamespaceStatus& value) { m_status = value; } /** *

The status of rule groups namespace.

*/ inline void SetStatus(RuleGroupsNamespaceStatus&& value) { m_status = std::move(value); } /** *

The status of rule groups namespace.

*/ inline CreateRuleGroupsNamespaceResult& WithStatus(const RuleGroupsNamespaceStatus& value) { SetStatus(value); return *this;} /** *

The status of rule groups namespace.

*/ inline CreateRuleGroupsNamespaceResult& WithStatus(RuleGroupsNamespaceStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The tags of this rule groups namespace.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags of this rule groups namespace.

*/ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** *

The tags of this rule groups namespace.

*/ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** *

The tags of this rule groups namespace.

*/ inline CreateRuleGroupsNamespaceResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags of this rule groups namespace.

*/ inline CreateRuleGroupsNamespaceResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags of this rule groups namespace.

*/ inline CreateRuleGroupsNamespaceResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *

The tags of this rule groups namespace.

*/ inline CreateRuleGroupsNamespaceResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The tags of this rule groups namespace.

*/ inline CreateRuleGroupsNamespaceResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags of this rule groups namespace.

*/ inline CreateRuleGroupsNamespaceResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags of this rule groups namespace.

*/ inline CreateRuleGroupsNamespaceResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags of this rule groups namespace.

*/ inline CreateRuleGroupsNamespaceResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The tags of this rule groups namespace.

*/ inline CreateRuleGroupsNamespaceResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateRuleGroupsNamespaceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateRuleGroupsNamespaceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateRuleGroupsNamespaceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_name; Aws::String m_arn; RuleGroupsNamespaceStatus m_status; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace PrometheusService } // namespace Aws