AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
GetAssessmentRequest.h
1
6#pragma once
7#include <aws/assurance/AssuranceRequest.h>
8#include <aws/assurance/Assurance_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Assurance {
15namespace Model {
16
20 public:
21 AWS_ASSURANCE_API GetAssessmentRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetAssessment"; }
28
29 AWS_ASSURANCE_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
38 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
39 template <typename EnvironmentArnT = Aws::String>
40 void SetEnvironmentArn(EnvironmentArnT&& value) {
41 m_environmentArnHasBeenSet = true;
42 m_environmentArn = std::forward<EnvironmentArnT>(value);
43 }
44 template <typename EnvironmentArnT = Aws::String>
45 GetAssessmentRequest& WithEnvironmentArn(EnvironmentArnT&& value) {
46 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetFramework() const { return m_framework; }
56 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
57 template <typename FrameworkT = Aws::String>
58 void SetFramework(FrameworkT&& value) {
59 m_frameworkHasBeenSet = true;
60 m_framework = std::forward<FrameworkT>(value);
61 }
62 template <typename FrameworkT = Aws::String>
63 GetAssessmentRequest& WithFramework(FrameworkT&& value) {
64 SetFramework(std::forward<FrameworkT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
74 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
75 template <typename FrameworkVersionT = Aws::String>
76 void SetFrameworkVersion(FrameworkVersionT&& value) {
77 m_frameworkVersionHasBeenSet = true;
78 m_frameworkVersion = std::forward<FrameworkVersionT>(value);
79 }
80 template <typename FrameworkVersionT = Aws::String>
81 GetAssessmentRequest& WithFrameworkVersion(FrameworkVersionT&& value) {
82 SetFrameworkVersion(std::forward<FrameworkVersionT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::String& GetControlId() const { return m_controlId; }
93 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
94 template <typename ControlIdT = Aws::String>
95 void SetControlId(ControlIdT&& value) {
96 m_controlIdHasBeenSet = true;
97 m_controlId = std::forward<ControlIdT>(value);
98 }
99 template <typename ControlIdT = Aws::String>
100 GetAssessmentRequest& WithControlId(ControlIdT&& value) {
101 SetControlId(std::forward<ControlIdT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetProject() const { return m_project; }
111 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
112 template <typename ProjectT = Aws::String>
113 void SetProject(ProjectT&& value) {
114 m_projectHasBeenSet = true;
115 m_project = std::forward<ProjectT>(value);
116 }
117 template <typename ProjectT = Aws::String>
119 SetProject(std::forward<ProjectT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetAssessmentId() const { return m_assessmentId; }
129 inline bool AssessmentIdHasBeenSet() const { return m_assessmentIdHasBeenSet; }
130 template <typename AssessmentIdT = Aws::String>
131 void SetAssessmentId(AssessmentIdT&& value) {
132 m_assessmentIdHasBeenSet = true;
133 m_assessmentId = std::forward<AssessmentIdT>(value);
134 }
135 template <typename AssessmentIdT = Aws::String>
136 GetAssessmentRequest& WithAssessmentId(AssessmentIdT&& value) {
137 SetAssessmentId(std::forward<AssessmentIdT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_environmentArn;
143
144 Aws::String m_framework;
145
146 Aws::String m_frameworkVersion;
147
148 Aws::String m_controlId;
149
150 Aws::String m_project;
151
152 Aws::String m_assessmentId;
153 bool m_environmentArnHasBeenSet = false;
154 bool m_frameworkHasBeenSet = false;
155 bool m_frameworkVersionHasBeenSet = false;
156 bool m_controlIdHasBeenSet = false;
157 bool m_projectHasBeenSet = false;
158 bool m_assessmentIdHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace Assurance
163} // namespace Aws
GetAssessmentRequest & WithFramework(FrameworkT &&value)
AWS_ASSURANCE_API GetAssessmentRequest()=default
AWS_ASSURANCE_API Aws::String SerializePayload() const override
void SetFrameworkVersion(FrameworkVersionT &&value)
GetAssessmentRequest & WithProject(ProjectT &&value)
void SetEnvironmentArn(EnvironmentArnT &&value)
GetAssessmentRequest & WithControlId(ControlIdT &&value)
GetAssessmentRequest & WithFrameworkVersion(FrameworkVersionT &&value)
GetAssessmentRequest & WithAssessmentId(AssessmentIdT &&value)
AWS_ASSURANCE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetAssessmentRequest & WithEnvironmentArn(EnvironmentArnT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String