AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssessmentTarget.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/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_INSPECTOR_API AssessmentTarget();
38 AWS_INSPECTOR_API AssessmentTarget(Aws::Utils::Json::JsonView jsonValue);
40 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const{ return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline AssessmentTarget& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline AssessmentTarget& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline AssessmentTarget& WithArn(const char* value) { SetArn(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline AssessmentTarget& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline AssessmentTarget& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline AssessmentTarget& WithName(const char* value) { SetName(value); return *this;}
70
72
76 inline const Aws::String& GetResourceGroupArn() const{ return m_resourceGroupArn; }
77 inline bool ResourceGroupArnHasBeenSet() const { return m_resourceGroupArnHasBeenSet; }
78 inline void SetResourceGroupArn(const Aws::String& value) { m_resourceGroupArnHasBeenSet = true; m_resourceGroupArn = value; }
79 inline void SetResourceGroupArn(Aws::String&& value) { m_resourceGroupArnHasBeenSet = true; m_resourceGroupArn = std::move(value); }
80 inline void SetResourceGroupArn(const char* value) { m_resourceGroupArnHasBeenSet = true; m_resourceGroupArn.assign(value); }
81 inline AssessmentTarget& WithResourceGroupArn(const Aws::String& value) { SetResourceGroupArn(value); return *this;}
82 inline AssessmentTarget& WithResourceGroupArn(Aws::String&& value) { SetResourceGroupArn(std::move(value)); return *this;}
83 inline AssessmentTarget& WithResourceGroupArn(const char* value) { SetResourceGroupArn(value); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
91 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
92 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
93 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
94 inline AssessmentTarget& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
95 inline AssessmentTarget& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
103 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
104 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
105 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
106 inline AssessmentTarget& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
107 inline AssessmentTarget& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
109 private:
110
111 Aws::String m_arn;
112 bool m_arnHasBeenSet = false;
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 Aws::String m_resourceGroupArn;
118 bool m_resourceGroupArnHasBeenSet = false;
119
120 Aws::Utils::DateTime m_createdAt;
121 bool m_createdAtHasBeenSet = false;
122
123 Aws::Utils::DateTime m_updatedAt;
124 bool m_updatedAtHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Inspector
129} // namespace Aws
AssessmentTarget & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetName(const Aws::String &value)
AssessmentTarget & WithResourceGroupArn(const char *value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetCreatedAt(const Aws::Utils::DateTime &value)
AssessmentTarget & WithArn(const Aws::String &value)
AssessmentTarget & WithUpdatedAt(Aws::Utils::DateTime &&value)
void SetResourceGroupArn(const char *value)
const Aws::String & GetResourceGroupArn() const
AssessmentTarget & WithArn(Aws::String &&value)
AssessmentTarget & WithName(const Aws::String &value)
AWS_INSPECTOR_API AssessmentTarget(Aws::Utils::Json::JsonView jsonValue)
AssessmentTarget & WithUpdatedAt(const Aws::Utils::DateTime &value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetArn(const Aws::String &value)
AssessmentTarget & WithName(const char *value)
AssessmentTarget & WithArn(const char *value)
void SetResourceGroupArn(Aws::String &&value)
AssessmentTarget & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetResourceGroupArn(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetName() const
AssessmentTarget & WithName(Aws::String &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetUpdatedAt(Aws::Utils::DateTime &&value)
AssessmentTarget & WithResourceGroupArn(Aws::String &&value)
AWS_INSPECTOR_API AssessmentTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
AssessmentTarget & WithResourceGroupArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue