AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceGroup.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/inspector/model/ResourceGroupTag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Inspector
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_INSPECTOR_API ResourceGroup() = default;
41 AWS_INSPECTOR_API ResourceGroup(Aws::Utils::Json::JsonView jsonValue);
42 AWS_INSPECTOR_API ResourceGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetArn() const { return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 ResourceGroup& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
57
59
63 inline const Aws::Vector<ResourceGroupTag>& GetTags() const { return m_tags; }
64 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
65 template<typename TagsT = Aws::Vector<ResourceGroupTag>>
66 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
67 template<typename TagsT = Aws::Vector<ResourceGroupTag>>
68 ResourceGroup& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
69 template<typename TagsT = ResourceGroupTag>
70 ResourceGroup& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
72
74
77 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
78 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
79 template<typename CreatedAtT = Aws::Utils::DateTime>
80 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
81 template<typename CreatedAtT = Aws::Utils::DateTime>
82 ResourceGroup& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
84 private:
85
86 Aws::String m_arn;
87 bool m_arnHasBeenSet = false;
88
90 bool m_tagsHasBeenSet = false;
91
92 Aws::Utils::DateTime m_createdAt{};
93 bool m_createdAtHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Inspector
98} // namespace Aws
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceGroup & WithArn(ArnT &&value)
AWS_INSPECTOR_API ResourceGroup()=default
ResourceGroup & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetArn() const
AWS_INSPECTOR_API ResourceGroup(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR_API ResourceGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceGroup & WithTags(TagsT &&value)
const Aws::Vector< ResourceGroupTag > & GetTags() const
ResourceGroup & AddTags(TagsT &&value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue