AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Assessment.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/auditmanager/model/AWSAccount.h>
10#include <aws/auditmanager/model/AssessmentMetadata.h>
11#include <aws/auditmanager/model/AssessmentFramework.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AuditManager
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_AUDITMANAGER_API Assessment();
41 AWS_AUDITMANAGER_API Assessment(Aws::Utils::Json::JsonView jsonValue);
42 AWS_AUDITMANAGER_API Assessment& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_AUDITMANAGER_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 Assessment& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline Assessment& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline Assessment& WithArn(const char* value) { SetArn(value); return *this;}
59
61
64 inline const AWSAccount& GetAwsAccount() const{ return m_awsAccount; }
65 inline bool AwsAccountHasBeenSet() const { return m_awsAccountHasBeenSet; }
66 inline void SetAwsAccount(const AWSAccount& value) { m_awsAccountHasBeenSet = true; m_awsAccount = value; }
67 inline void SetAwsAccount(AWSAccount&& value) { m_awsAccountHasBeenSet = true; m_awsAccount = std::move(value); }
68 inline Assessment& WithAwsAccount(const AWSAccount& value) { SetAwsAccount(value); return *this;}
69 inline Assessment& WithAwsAccount(AWSAccount&& value) { SetAwsAccount(std::move(value)); return *this;}
71
73
76 inline const AssessmentMetadata& GetMetadata() const{ return m_metadata; }
77 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
78 inline void SetMetadata(const AssessmentMetadata& value) { m_metadataHasBeenSet = true; m_metadata = value; }
79 inline void SetMetadata(AssessmentMetadata&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
80 inline Assessment& WithMetadata(const AssessmentMetadata& value) { SetMetadata(value); return *this;}
81 inline Assessment& WithMetadata(AssessmentMetadata&& value) { SetMetadata(std::move(value)); return *this;}
83
85
88 inline const AssessmentFramework& GetFramework() const{ return m_framework; }
89 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
90 inline void SetFramework(const AssessmentFramework& value) { m_frameworkHasBeenSet = true; m_framework = value; }
91 inline void SetFramework(AssessmentFramework&& value) { m_frameworkHasBeenSet = true; m_framework = std::move(value); }
92 inline Assessment& WithFramework(const AssessmentFramework& value) { SetFramework(value); return *this;}
93 inline Assessment& WithFramework(AssessmentFramework&& value) { SetFramework(std::move(value)); return *this;}
95
97
100 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
103 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
104 inline Assessment& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
105 inline Assessment& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
106 inline Assessment& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
107 inline Assessment& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
108 inline Assessment& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
109 inline Assessment& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
110 inline Assessment& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
111 inline Assessment& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
112 inline Assessment& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
114 private:
115
116 Aws::String m_arn;
117 bool m_arnHasBeenSet = false;
118
119 AWSAccount m_awsAccount;
120 bool m_awsAccountHasBeenSet = false;
121
122 AssessmentMetadata m_metadata;
123 bool m_metadataHasBeenSet = false;
124
125 AssessmentFramework m_framework;
126 bool m_frameworkHasBeenSet = false;
127
129 bool m_tagsHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace AuditManager
134} // namespace Aws
void SetArn(const char *value)
Definition Assessment.h:54
Assessment & WithArn(const Aws::String &value)
Definition Assessment.h:55
Assessment & WithAwsAccount(const AWSAccount &value)
Definition Assessment.h:68
const AssessmentMetadata & GetMetadata() const
Definition Assessment.h:76
Assessment & WithMetadata(const AssessmentMetadata &value)
Definition Assessment.h:80
const AssessmentFramework & GetFramework() const
Definition Assessment.h:88
void SetMetadata(const AssessmentMetadata &value)
Definition Assessment.h:78
Assessment & WithFramework(AssessmentFramework &&value)
Definition Assessment.h:93
Assessment & WithFramework(const AssessmentFramework &value)
Definition Assessment.h:92
Assessment & AddTags(Aws::String &&key, const Aws::String &value)
Definition Assessment.h:107
const Aws::String & GetArn() const
Definition Assessment.h:50
Assessment & AddTags(Aws::String &&key, const char *value)
Definition Assessment.h:111
void SetAwsAccount(const AWSAccount &value)
Definition Assessment.h:66
const AWSAccount & GetAwsAccount() const
Definition Assessment.h:64
Assessment & AddTags(const Aws::String &key, const Aws::String &value)
Definition Assessment.h:106
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Assessment & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Assessment.h:105
Assessment & WithMetadata(AssessmentMetadata &&value)
Definition Assessment.h:81
AWS_AUDITMANAGER_API Assessment(Aws::Utils::Json::JsonView jsonValue)
Assessment & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Assessment.h:104
void SetArn(Aws::String &&value)
Definition Assessment.h:53
AWS_AUDITMANAGER_API Assessment()
void SetMetadata(AssessmentMetadata &&value)
Definition Assessment.h:79
void SetArn(const Aws::String &value)
Definition Assessment.h:52
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Assessment.h:103
AWS_AUDITMANAGER_API Assessment & operator=(Aws::Utils::Json::JsonView jsonValue)
Assessment & AddTags(Aws::String &&key, Aws::String &&value)
Definition Assessment.h:109
Assessment & AddTags(const char *key, const char *value)
Definition Assessment.h:112
void SetFramework(const AssessmentFramework &value)
Definition Assessment.h:90
void SetAwsAccount(AWSAccount &&value)
Definition Assessment.h:67
Assessment & WithArn(Aws::String &&value)
Definition Assessment.h:56
Assessment & WithAwsAccount(AWSAccount &&value)
Definition Assessment.h:69
Assessment & AddTags(const char *key, Aws::String &&value)
Definition Assessment.h:110
void SetFramework(AssessmentFramework &&value)
Definition Assessment.h:91
Assessment & WithArn(const char *value)
Definition Assessment.h:57
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Assessment.h:100
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Assessment.h:102
Assessment & AddTags(const Aws::String &key, Aws::String &&value)
Definition Assessment.h:108
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue