AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
ResourceGroup.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector/Inspector_EXPORTS.h>
11#include <aws/inspector/model/ResourceGroupTag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector {
23namespace Model {
24
34 public:
35 AWS_INSPECTOR_API ResourceGroup() = default;
36 AWS_INSPECTOR_API ResourceGroup(Aws::Utils::Json::JsonView jsonValue);
37 AWS_INSPECTOR_API ResourceGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
52 ResourceGroup& WithArn(ArnT&& value) {
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
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) {
67 m_tagsHasBeenSet = true;
68 m_tags = std::forward<TagsT>(value);
69 }
70 template <typename TagsT = Aws::Vector<ResourceGroupTag>>
71 ResourceGroup& WithTags(TagsT&& value) {
72 SetTags(std::forward<TagsT>(value));
73 return *this;
74 }
75 template <typename TagsT = ResourceGroupTag>
76 ResourceGroup& AddTags(TagsT&& value) {
77 m_tagsHasBeenSet = true;
78 m_tags.emplace_back(std::forward<TagsT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
88 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
89 template <typename CreatedAtT = Aws::Utils::DateTime>
90 void SetCreatedAt(CreatedAtT&& value) {
91 m_createdAtHasBeenSet = true;
92 m_createdAt = std::forward<CreatedAtT>(value);
93 }
94 template <typename CreatedAtT = Aws::Utils::DateTime>
95 ResourceGroup& WithCreatedAt(CreatedAtT&& value) {
96 SetCreatedAt(std::forward<CreatedAtT>(value));
97 return *this;
98 }
100 private:
101 Aws::String m_arn;
102
104
105 Aws::Utils::DateTime m_createdAt{};
106 bool m_arnHasBeenSet = false;
107 bool m_tagsHasBeenSet = false;
108 bool m_createdAtHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace Inspector
113} // 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