AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
AssessmentTarget.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector/Inspector_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector {
21namespace Model {
22
31 public:
32 AWS_INSPECTOR_API AssessmentTarget() = default;
33 AWS_INSPECTOR_API AssessmentTarget(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 AssessmentTarget& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 AssessmentTarget& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetResourceGroupArn() const { return m_resourceGroupArn; }
79 inline bool ResourceGroupArnHasBeenSet() const { return m_resourceGroupArnHasBeenSet; }
80 template <typename ResourceGroupArnT = Aws::String>
81 void SetResourceGroupArn(ResourceGroupArnT&& value) {
82 m_resourceGroupArnHasBeenSet = true;
83 m_resourceGroupArn = std::forward<ResourceGroupArnT>(value);
84 }
85 template <typename ResourceGroupArnT = Aws::String>
86 AssessmentTarget& WithResourceGroupArn(ResourceGroupArnT&& value) {
87 SetResourceGroupArn(std::forward<ResourceGroupArnT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
97 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
98 template <typename CreatedAtT = Aws::Utils::DateTime>
99 void SetCreatedAt(CreatedAtT&& value) {
100 m_createdAtHasBeenSet = true;
101 m_createdAt = std::forward<CreatedAtT>(value);
102 }
103 template <typename CreatedAtT = Aws::Utils::DateTime>
104 AssessmentTarget& WithCreatedAt(CreatedAtT&& value) {
105 SetCreatedAt(std::forward<CreatedAtT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
115 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
116 template <typename UpdatedAtT = Aws::Utils::DateTime>
117 void SetUpdatedAt(UpdatedAtT&& value) {
118 m_updatedAtHasBeenSet = true;
119 m_updatedAt = std::forward<UpdatedAtT>(value);
120 }
121 template <typename UpdatedAtT = Aws::Utils::DateTime>
122 AssessmentTarget& WithUpdatedAt(UpdatedAtT&& value) {
123 SetUpdatedAt(std::forward<UpdatedAtT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_arn;
129
130 Aws::String m_name;
131
132 Aws::String m_resourceGroupArn;
133
134 Aws::Utils::DateTime m_createdAt{};
135
136 Aws::Utils::DateTime m_updatedAt{};
137 bool m_arnHasBeenSet = false;
138 bool m_nameHasBeenSet = false;
139 bool m_resourceGroupArnHasBeenSet = false;
140 bool m_createdAtHasBeenSet = false;
141 bool m_updatedAtHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace Inspector
146} // namespace Aws
AssessmentTarget & WithUpdatedAt(UpdatedAtT &&value)
void SetResourceGroupArn(ResourceGroupArnT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AssessmentTarget & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetResourceGroupArn() const
AssessmentTarget & WithResourceGroupArn(ResourceGroupArnT &&value)
AWS_INSPECTOR_API AssessmentTarget(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
AssessmentTarget & WithArn(ArnT &&value)
const Aws::String & GetName() const
const Aws::Utils::DateTime & GetCreatedAt() const
AssessmentTarget & WithName(NameT &&value)
AWS_INSPECTOR_API AssessmentTarget()=default
AWS_INSPECTOR_API AssessmentTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue