AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
BatchCreateSecurityRequirementsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityagent/SecurityAgentRequest.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/CreateSecurityRequirementEntry.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecurityAgent {
17namespace Model {
18
22 public:
23 AWS_SECURITYAGENT_API BatchCreateSecurityRequirementsRequest() = 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 "BatchCreateSecurityRequirements"; }
30
31 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetPackId() const { return m_packId; }
39 inline bool PackIdHasBeenSet() const { return m_packIdHasBeenSet; }
40 template <typename PackIdT = Aws::String>
41 void SetPackId(PackIdT&& value) {
42 m_packIdHasBeenSet = true;
43 m_packId = std::forward<PackIdT>(value);
44 }
45 template <typename PackIdT = Aws::String>
47 SetPackId(std::forward<PackIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<CreateSecurityRequirementEntry>& GetSecurityRequirements() const { return m_securityRequirements; }
57 inline bool SecurityRequirementsHasBeenSet() const { return m_securityRequirementsHasBeenSet; }
58 template <typename SecurityRequirementsT = Aws::Vector<CreateSecurityRequirementEntry>>
59 void SetSecurityRequirements(SecurityRequirementsT&& value) {
60 m_securityRequirementsHasBeenSet = true;
61 m_securityRequirements = std::forward<SecurityRequirementsT>(value);
62 }
63 template <typename SecurityRequirementsT = Aws::Vector<CreateSecurityRequirementEntry>>
65 SetSecurityRequirements(std::forward<SecurityRequirementsT>(value));
66 return *this;
67 }
68 template <typename SecurityRequirementsT = CreateSecurityRequirementEntry>
70 m_securityRequirementsHasBeenSet = true;
71 m_securityRequirements.emplace_back(std::forward<SecurityRequirementsT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_packId;
77
79 bool m_packIdHasBeenSet = false;
80 bool m_securityRequirementsHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace SecurityAgent
85} // namespace Aws
const Aws::Vector< CreateSecurityRequirementEntry > & GetSecurityRequirements() const
BatchCreateSecurityRequirementsRequest & WithSecurityRequirements(SecurityRequirementsT &&value)
BatchCreateSecurityRequirementsRequest & AddSecurityRequirements(SecurityRequirementsT &&value)
AWS_SECURITYAGENT_API BatchCreateSecurityRequirementsRequest()=default
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector