AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
54 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
55 inline ResourceGroup& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline ResourceGroup& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline ResourceGroup& WithArn(const char* value) { SetArn(value); return *this;}
59
61
65 inline const Aws::Vector<ResourceGroupTag>& GetTags() const{ return m_tags; }
66 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
67 inline void SetTags(const Aws::Vector<ResourceGroupTag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
68 inline void SetTags(Aws::Vector<ResourceGroupTag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
69 inline ResourceGroup& WithTags(const Aws::Vector<ResourceGroupTag>& value) { SetTags(value); return *this;}
70 inline ResourceGroup& WithTags(Aws::Vector<ResourceGroupTag>&& value) { SetTags(std::move(value)); return *this;}
71 inline ResourceGroup& AddTags(const ResourceGroupTag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
72 inline ResourceGroup& AddTags(ResourceGroupTag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
74
76
79 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
80 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
81 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
82 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
83 inline ResourceGroup& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
84 inline ResourceGroup& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
86 private:
87
88 Aws::String m_arn;
89 bool m_arnHasBeenSet = false;
90
92 bool m_tagsHasBeenSet = false;
93
94 Aws::Utils::DateTime m_createdAt;
95 bool m_createdAtHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Inspector
100} // namespace Aws
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetArn(Aws::String &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
ResourceGroup & WithArn(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
ResourceGroup & WithArn(const char *value)
ResourceGroup & WithArn(Aws::String &&value)
const Aws::String & GetArn() const
AWS_INSPECTOR_API ResourceGroup(Aws::Utils::Json::JsonView jsonValue)
void SetTags(Aws::Vector< ResourceGroupTag > &&value)
void SetArn(const Aws::String &value)
ResourceGroup & WithCreatedAt(Aws::Utils::DateTime &&value)
AWS_INSPECTOR_API ResourceGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ResourceGroupTag > & GetTags() const
ResourceGroup & WithCreatedAt(const Aws::Utils::DateTime &value)
ResourceGroup & AddTags(ResourceGroupTag &&value)
ResourceGroup & AddTags(const ResourceGroupTag &value)
void SetTags(const Aws::Vector< ResourceGroupTag > &value)
const Aws::Utils::DateTime & GetCreatedAt() const
ResourceGroup & WithTags(Aws::Vector< ResourceGroupTag > &&value)
ResourceGroup & WithTags(const Aws::Vector< ResourceGroupTag > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue