/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Synthetics { namespace Model { /** *

This structure contains information about one group.

See Also:

* AWS * API Reference

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

The unique ID of the group.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique ID of the group.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique ID of the group.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique ID of the group.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique ID of the group.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique ID of the group.

*/ inline Group& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique ID of the group.

*/ inline Group& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique ID of the group.

*/ inline Group& WithId(const char* value) { SetId(value); return *this;} /** *

The name of the group.

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

The name of the group.

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

The name of the group.

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

The name of the group.

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

The name of the group.

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

The name of the group.

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

The name of the group.

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

The name of the group.

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

The ARN of the group.

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

The ARN of the group.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the group.

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

The ARN of the group.

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

The ARN of the group.

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

The ARN of the group.

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

The ARN of the group.

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

The ARN of the group.

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

The list of key-value pairs that are associated with the canary.

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

The list of key-value pairs that are associated with the canary.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The list of key-value pairs that are associated with the canary.

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

The list of key-value pairs that are associated with the canary.

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

The list of key-value pairs that are associated with the canary.

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

The list of key-value pairs that are associated with the canary.

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

The list of key-value pairs that are associated with the canary.

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

The list of key-value pairs that are associated with the canary.

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

The list of key-value pairs that are associated with the canary.

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

The list of key-value pairs that are associated with the canary.

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

The list of key-value pairs that are associated with the canary.

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

The list of key-value pairs that are associated with the canary.

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

The list of key-value pairs that are associated with the canary.

*/ inline Group& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The date and time that the group was created.

*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *

The date and time that the group was created.

*/ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *

The date and time that the group was created.

*/ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** *

The date and time that the group was created.

*/ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** *

The date and time that the group was created.

*/ inline Group& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *

The date and time that the group was created.

*/ inline Group& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** *

The date and time that the group was most recently updated.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The date and time that the group was most recently updated.

*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

The date and time that the group was most recently updated.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *

The date and time that the group was most recently updated.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *

The date and time that the group was most recently updated.

*/ inline Group& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

The date and time that the group was most recently updated.

*/ inline Group& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; }; } // namespace Model } // namespace Synthetics } // namespace Aws