AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAssessmentTemplateRequest.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/inspector/InspectorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/inspector/model/Attribute.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Inspector
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateAssessmentTemplate"; }
33
34 AWS_INSPECTOR_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetAssessmentTargetArn() const{ return m_assessmentTargetArn; }
45 inline bool AssessmentTargetArnHasBeenSet() const { return m_assessmentTargetArnHasBeenSet; }
46 inline void SetAssessmentTargetArn(const Aws::String& value) { m_assessmentTargetArnHasBeenSet = true; m_assessmentTargetArn = value; }
47 inline void SetAssessmentTargetArn(Aws::String&& value) { m_assessmentTargetArnHasBeenSet = true; m_assessmentTargetArn = std::move(value); }
48 inline void SetAssessmentTargetArn(const char* value) { m_assessmentTargetArnHasBeenSet = true; m_assessmentTargetArn.assign(value); }
51 inline CreateAssessmentTemplateRequest& WithAssessmentTargetArn(const char* value) { SetAssessmentTargetArn(value); return *this;}
53
55
61 inline const Aws::String& GetAssessmentTemplateName() const{ return m_assessmentTemplateName; }
62 inline bool AssessmentTemplateNameHasBeenSet() const { return m_assessmentTemplateNameHasBeenSet; }
63 inline void SetAssessmentTemplateName(const Aws::String& value) { m_assessmentTemplateNameHasBeenSet = true; m_assessmentTemplateName = value; }
64 inline void SetAssessmentTemplateName(Aws::String&& value) { m_assessmentTemplateNameHasBeenSet = true; m_assessmentTemplateName = std::move(value); }
65 inline void SetAssessmentTemplateName(const char* value) { m_assessmentTemplateNameHasBeenSet = true; m_assessmentTemplateName.assign(value); }
70
72
75 inline int GetDurationInSeconds() const{ return m_durationInSeconds; }
76 inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
77 inline void SetDurationInSeconds(int value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; }
80
82
86 inline const Aws::Vector<Aws::String>& GetRulesPackageArns() const{ return m_rulesPackageArns; }
87 inline bool RulesPackageArnsHasBeenSet() const { return m_rulesPackageArnsHasBeenSet; }
88 inline void SetRulesPackageArns(const Aws::Vector<Aws::String>& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns = value; }
89 inline void SetRulesPackageArns(Aws::Vector<Aws::String>&& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns = std::move(value); }
92 inline CreateAssessmentTemplateRequest& AddRulesPackageArns(const Aws::String& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns.push_back(value); return *this; }
93 inline CreateAssessmentTemplateRequest& AddRulesPackageArns(Aws::String&& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns.push_back(std::move(value)); return *this; }
94 inline CreateAssessmentTemplateRequest& AddRulesPackageArns(const char* value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns.push_back(value); return *this; }
96
98
104 inline const Aws::Vector<Attribute>& GetUserAttributesForFindings() const{ return m_userAttributesForFindings; }
105 inline bool UserAttributesForFindingsHasBeenSet() const { return m_userAttributesForFindingsHasBeenSet; }
106 inline void SetUserAttributesForFindings(const Aws::Vector<Attribute>& value) { m_userAttributesForFindingsHasBeenSet = true; m_userAttributesForFindings = value; }
107 inline void SetUserAttributesForFindings(Aws::Vector<Attribute>&& value) { m_userAttributesForFindingsHasBeenSet = true; m_userAttributesForFindings = std::move(value); }
110 inline CreateAssessmentTemplateRequest& AddUserAttributesForFindings(const Attribute& value) { m_userAttributesForFindingsHasBeenSet = true; m_userAttributesForFindings.push_back(value); return *this; }
111 inline CreateAssessmentTemplateRequest& AddUserAttributesForFindings(Attribute&& value) { m_userAttributesForFindingsHasBeenSet = true; m_userAttributesForFindings.push_back(std::move(value)); return *this; }
113 private:
114
115 Aws::String m_assessmentTargetArn;
116 bool m_assessmentTargetArnHasBeenSet = false;
117
118 Aws::String m_assessmentTemplateName;
119 bool m_assessmentTemplateNameHasBeenSet = false;
120
121 int m_durationInSeconds;
122 bool m_durationInSecondsHasBeenSet = false;
123
124 Aws::Vector<Aws::String> m_rulesPackageArns;
125 bool m_rulesPackageArnsHasBeenSet = false;
126
127 Aws::Vector<Attribute> m_userAttributesForFindings;
128 bool m_userAttributesForFindingsHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace Inspector
133} // namespace Aws
CreateAssessmentTemplateRequest & WithAssessmentTargetArn(Aws::String &&value)
CreateAssessmentTemplateRequest & AddUserAttributesForFindings(Attribute &&value)
CreateAssessmentTemplateRequest & WithDurationInSeconds(int value)
CreateAssessmentTemplateRequest & WithAssessmentTemplateName(const Aws::String &value)
void SetUserAttributesForFindings(const Aws::Vector< Attribute > &value)
void SetRulesPackageArns(const Aws::Vector< Aws::String > &value)
CreateAssessmentTemplateRequest & WithRulesPackageArns(Aws::Vector< Aws::String > &&value)
CreateAssessmentTemplateRequest & AddRulesPackageArns(const char *value)
CreateAssessmentTemplateRequest & WithUserAttributesForFindings(Aws::Vector< Attribute > &&value)
CreateAssessmentTemplateRequest & WithAssessmentTargetArn(const Aws::String &value)
CreateAssessmentTemplateRequest & WithUserAttributesForFindings(const Aws::Vector< Attribute > &value)
CreateAssessmentTemplateRequest & WithRulesPackageArns(const Aws::Vector< Aws::String > &value)
AWS_INSPECTOR_API Aws::String SerializePayload() const override
CreateAssessmentTemplateRequest & AddRulesPackageArns(const Aws::String &value)
CreateAssessmentTemplateRequest & WithAssessmentTemplateName(Aws::String &&value)
CreateAssessmentTemplateRequest & WithAssessmentTargetArn(const char *value)
CreateAssessmentTemplateRequest & AddUserAttributesForFindings(const Attribute &value)
CreateAssessmentTemplateRequest & WithAssessmentTemplateName(const char *value)
AWS_INSPECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAssessmentTemplateRequest & AddRulesPackageArns(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector