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

Represents a description of the rule groups namespace.

See * Also:

AWS * API Reference

*/ class RuleGroupsNamespaceDescription { public: AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceDescription(); AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceDescription(Aws::Utils::Json::JsonView jsonValue); AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceDescription& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

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

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

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

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

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

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

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

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

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

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

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

*/ inline RuleGroupsNamespaceDescription& WithArn(const char* value) { SetArn(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 RuleGroupsNamespaceDescription& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The rule groups namespace name.

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

The rule groups namespace name.

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

The status of rule groups namespace.

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

The status of rule groups namespace.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of rule groups namespace.

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

The status of rule groups namespace.

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

The status of rule groups namespace.

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

The status of rule groups namespace.

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

The rule groups namespace data.

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

The rule groups namespace data.

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

The rule groups namespace data.

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

The rule groups namespace data.

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

The rule groups namespace data.

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

The rule groups namespace data.

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

The time when the rule groups namespace was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time when the rule groups namespace was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The time when the rule groups namespace was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The time when the rule groups namespace was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The time when the rule groups namespace was created.

*/ inline RuleGroupsNamespaceDescription& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time when the rule groups namespace was created.

*/ inline RuleGroupsNamespaceDescription& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The time when the rule groups namespace was modified.

*/ inline const Aws::Utils::DateTime& GetModifiedAt() const{ return m_modifiedAt; } /** *

The time when the rule groups namespace was modified.

*/ inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; } /** *

The time when the rule groups namespace was modified.

*/ inline void SetModifiedAt(const Aws::Utils::DateTime& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = value; } /** *

The time when the rule groups namespace was modified.

*/ inline void SetModifiedAt(Aws::Utils::DateTime&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::move(value); } /** *

The time when the rule groups namespace was modified.

*/ inline RuleGroupsNamespaceDescription& WithModifiedAt(const Aws::Utils::DateTime& value) { SetModifiedAt(value); return *this;} /** *

The time when the rule groups namespace was modified.

*/ inline RuleGroupsNamespaceDescription& WithModifiedAt(Aws::Utils::DateTime&& value) { SetModifiedAt(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 bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags of this rule groups namespace.

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

The tags of this rule groups namespace.

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

The tags of this rule groups namespace.

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

The tags of this rule groups namespace.

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

The tags of this rule groups namespace.

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

The tags of this rule groups namespace.

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

The tags of this rule groups namespace.

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

The tags of this rule groups namespace.

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

The tags of this rule groups namespace.

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

The tags of this rule groups namespace.

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

The tags of this rule groups namespace.

*/ inline RuleGroupsNamespaceDescription& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; RuleGroupsNamespaceStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::ByteBuffer m_data; bool m_dataHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Utils::DateTime m_modifiedAt; bool m_modifiedAtHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace PrometheusService } // namespace Aws