AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
CreateSecurityRequirementPackRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityagent/SecurityAgentRequest.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/SecurityRequirementPackStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecurityAgent {
17namespace Model {
18
22 public:
23 AWS_SECURITYAGENT_API CreateSecurityRequirementPackRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateSecurityRequirementPack"; }
30
31 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetName() const { return m_name; }
38 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template <typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) {
59 m_descriptionHasBeenSet = true;
60 m_description = std::forward<DescriptionT>(value);
61 }
62 template <typename DescriptionT = Aws::String>
64 SetDescription(std::forward<DescriptionT>(value));
65 return *this;
66 }
68
70
73 inline SecurityRequirementPackStatus GetStatus() const { return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 m_statusHasBeenSet = true;
77 m_status = value;
78 }
80 SetStatus(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
90 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
91 template <typename KmsKeyIdT = Aws::String>
92 void SetKmsKeyId(KmsKeyIdT&& value) {
93 m_kmsKeyIdHasBeenSet = true;
94 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
95 }
96 template <typename KmsKeyIdT = Aws::String>
98 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 void SetTags(TagsT&& value) {
111 m_tagsHasBeenSet = true;
112 m_tags = std::forward<TagsT>(value);
113 }
114 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
116 SetTags(std::forward<TagsT>(value));
117 return *this;
118 }
119 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
120 CreateSecurityRequirementPackRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
121 m_tagsHasBeenSet = true;
122 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_name;
128
129 Aws::String m_description;
130
132
133 Aws::String m_kmsKeyId;
134
136 bool m_nameHasBeenSet = false;
137 bool m_descriptionHasBeenSet = false;
138 bool m_statusHasBeenSet = false;
139 bool m_kmsKeyIdHasBeenSet = false;
140 bool m_tagsHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace SecurityAgent
145} // namespace Aws
CreateSecurityRequirementPackRequest & WithDescription(DescriptionT &&value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
CreateSecurityRequirementPackRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateSecurityRequirementPackRequest & WithStatus(SecurityRequirementPackStatus value)
CreateSecurityRequirementPackRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_SECURITYAGENT_API CreateSecurityRequirementPackRequest()=default
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