AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
GetExclusionsPreviewRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector/InspectorRequest.h>
9#include <aws/inspector/Inspector_EXPORTS.h>
10#include <aws/inspector/model/Locale.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Inspector {
16namespace Model {
17
21 public:
22 AWS_INSPECTOR_API GetExclusionsPreviewRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetExclusionsPreview"; }
29
30 AWS_INSPECTOR_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetAssessmentTemplateArn() const { return m_assessmentTemplateArn; }
40 inline bool AssessmentTemplateArnHasBeenSet() const { return m_assessmentTemplateArnHasBeenSet; }
41 template <typename AssessmentTemplateArnT = Aws::String>
42 void SetAssessmentTemplateArn(AssessmentTemplateArnT&& value) {
43 m_assessmentTemplateArnHasBeenSet = true;
44 m_assessmentTemplateArn = std::forward<AssessmentTemplateArnT>(value);
45 }
46 template <typename AssessmentTemplateArnT = Aws::String>
47 GetExclusionsPreviewRequest& WithAssessmentTemplateArn(AssessmentTemplateArnT&& value) {
48 SetAssessmentTemplateArn(std::forward<AssessmentTemplateArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPreviewToken() const { return m_previewToken; }
58 inline bool PreviewTokenHasBeenSet() const { return m_previewTokenHasBeenSet; }
59 template <typename PreviewTokenT = Aws::String>
60 void SetPreviewToken(PreviewTokenT&& value) {
61 m_previewTokenHasBeenSet = true;
62 m_previewToken = std::forward<PreviewTokenT>(value);
63 }
64 template <typename PreviewTokenT = Aws::String>
66 SetPreviewToken(std::forward<PreviewTokenT>(value));
67 return *this;
68 }
70
72
78 inline const Aws::String& GetNextToken() const { return m_nextToken; }
79 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
80 template <typename NextTokenT = Aws::String>
81 void SetNextToken(NextTokenT&& value) {
82 m_nextTokenHasBeenSet = true;
83 m_nextToken = std::forward<NextTokenT>(value);
84 }
85 template <typename NextTokenT = Aws::String>
87 SetNextToken(std::forward<NextTokenT>(value));
88 return *this;
89 }
91
93
97 inline int GetMaxResults() const { return m_maxResults; }
98 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
99 inline void SetMaxResults(int value) {
100 m_maxResultsHasBeenSet = true;
101 m_maxResults = value;
102 }
104 SetMaxResults(value);
105 return *this;
106 }
108
110
114 inline Locale GetLocale() const { return m_locale; }
115 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
116 inline void SetLocale(Locale value) {
117 m_localeHasBeenSet = true;
118 m_locale = value;
119 }
121 SetLocale(value);
122 return *this;
123 }
125 private:
126 Aws::String m_assessmentTemplateArn;
127
128 Aws::String m_previewToken;
129
130 Aws::String m_nextToken;
131
132 int m_maxResults{0};
133
134 Locale m_locale{Locale::NOT_SET};
135 bool m_assessmentTemplateArnHasBeenSet = false;
136 bool m_previewTokenHasBeenSet = false;
137 bool m_nextTokenHasBeenSet = false;
138 bool m_maxResultsHasBeenSet = false;
139 bool m_localeHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace Inspector
144} // namespace Aws
GetExclusionsPreviewRequest & WithPreviewToken(PreviewTokenT &&value)
AWS_INSPECTOR_API GetExclusionsPreviewRequest()=default
GetExclusionsPreviewRequest & WithMaxResults(int value)
AWS_INSPECTOR_API Aws::String SerializePayload() const override
GetExclusionsPreviewRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
GetExclusionsPreviewRequest & WithLocale(Locale value)
void SetAssessmentTemplateArn(AssessmentTemplateArnT &&value)
GetExclusionsPreviewRequest & WithAssessmentTemplateArn(AssessmentTemplateArnT &&value)
AWS_INSPECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String