AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateSoftwareUpdateJobRequest.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/greengrass/GreengrassRequest.h>
10#include <aws/greengrass/Greengrass_EXPORTS.h>
11#include <aws/greengrass/model/SoftwareToUpdate.h>
12#include <aws/greengrass/model/UpdateAgentLogLevel.h>
13#include <aws/greengrass/model/UpdateTargetsArchitecture.h>
14#include <aws/greengrass/model/UpdateTargetsOperatingSystem.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Greengrass {
20namespace Model {
21
25 public:
26 AWS_GREENGRASS_API CreateSoftwareUpdateJobRequest() = default;
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 "CreateSoftwareUpdateJob"; }
33
34 AWS_GREENGRASS_API Aws::String SerializePayload() const override;
35
37
39
42 inline const Aws::String& GetAmznClientToken() const { return m_amznClientToken; }
43 inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
44 template <typename AmznClientTokenT = Aws::String>
45 void SetAmznClientToken(AmznClientTokenT&& value) {
46 m_amznClientTokenHasBeenSet = true;
47 m_amznClientToken = std::forward<AmznClientTokenT>(value);
48 }
49 template <typename AmznClientTokenT = Aws::String>
51 SetAmznClientToken(std::forward<AmznClientTokenT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetS3UrlSignerRole() const { return m_s3UrlSignerRole; }
59 inline bool S3UrlSignerRoleHasBeenSet() const { return m_s3UrlSignerRoleHasBeenSet; }
60 template <typename S3UrlSignerRoleT = Aws::String>
61 void SetS3UrlSignerRole(S3UrlSignerRoleT&& value) {
62 m_s3UrlSignerRoleHasBeenSet = true;
63 m_s3UrlSignerRole = std::forward<S3UrlSignerRoleT>(value);
64 }
65 template <typename S3UrlSignerRoleT = Aws::String>
67 SetS3UrlSignerRole(std::forward<S3UrlSignerRoleT>(value));
68 return *this;
69 }
71
73
74 inline SoftwareToUpdate GetSoftwareToUpdate() const { return m_softwareToUpdate; }
75 inline bool SoftwareToUpdateHasBeenSet() const { return m_softwareToUpdateHasBeenSet; }
77 m_softwareToUpdateHasBeenSet = true;
78 m_softwareToUpdate = value;
79 }
82 return *this;
83 }
85
87
88 inline UpdateAgentLogLevel GetUpdateAgentLogLevel() const { return m_updateAgentLogLevel; }
89 inline bool UpdateAgentLogLevelHasBeenSet() const { return m_updateAgentLogLevelHasBeenSet; }
91 m_updateAgentLogLevelHasBeenSet = true;
92 m_updateAgentLogLevel = value;
93 }
96 return *this;
97 }
99
101
102 inline const Aws::Vector<Aws::String>& GetUpdateTargets() const { return m_updateTargets; }
103 inline bool UpdateTargetsHasBeenSet() const { return m_updateTargetsHasBeenSet; }
104 template <typename UpdateTargetsT = Aws::Vector<Aws::String>>
105 void SetUpdateTargets(UpdateTargetsT&& value) {
106 m_updateTargetsHasBeenSet = true;
107 m_updateTargets = std::forward<UpdateTargetsT>(value);
108 }
109 template <typename UpdateTargetsT = Aws::Vector<Aws::String>>
111 SetUpdateTargets(std::forward<UpdateTargetsT>(value));
112 return *this;
113 }
114 template <typename UpdateTargetsT = Aws::String>
116 m_updateTargetsHasBeenSet = true;
117 m_updateTargets.emplace_back(std::forward<UpdateTargetsT>(value));
118 return *this;
119 }
121
123
124 inline UpdateTargetsArchitecture GetUpdateTargetsArchitecture() const { return m_updateTargetsArchitecture; }
125 inline bool UpdateTargetsArchitectureHasBeenSet() const { return m_updateTargetsArchitectureHasBeenSet; }
127 m_updateTargetsArchitectureHasBeenSet = true;
128 m_updateTargetsArchitecture = value;
129 }
132 return *this;
133 }
135
137
138 inline UpdateTargetsOperatingSystem GetUpdateTargetsOperatingSystem() const { return m_updateTargetsOperatingSystem; }
139 inline bool UpdateTargetsOperatingSystemHasBeenSet() const { return m_updateTargetsOperatingSystemHasBeenSet; }
141 m_updateTargetsOperatingSystemHasBeenSet = true;
142 m_updateTargetsOperatingSystem = value;
143 }
146 return *this;
147 }
149 private:
150 Aws::String m_amznClientToken;
151
152 Aws::String m_s3UrlSignerRole;
153
155
157
158 Aws::Vector<Aws::String> m_updateTargets;
159
161
163 bool m_amznClientTokenHasBeenSet = false;
164 bool m_s3UrlSignerRoleHasBeenSet = false;
165 bool m_softwareToUpdateHasBeenSet = false;
166 bool m_updateAgentLogLevelHasBeenSet = false;
167 bool m_updateTargetsHasBeenSet = false;
168 bool m_updateTargetsArchitectureHasBeenSet = false;
169 bool m_updateTargetsOperatingSystemHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace Greengrass
174} // namespace Aws
AWS_GREENGRASS_API CreateSoftwareUpdateJobRequest()=default
CreateSoftwareUpdateJobRequest & WithUpdateTargetsArchitecture(UpdateTargetsArchitecture value)
CreateSoftwareUpdateJobRequest & AddUpdateTargets(UpdateTargetsT &&value)
CreateSoftwareUpdateJobRequest & WithS3UrlSignerRole(S3UrlSignerRoleT &&value)
CreateSoftwareUpdateJobRequest & WithUpdateAgentLogLevel(UpdateAgentLogLevel value)
void SetUpdateTargetsOperatingSystem(UpdateTargetsOperatingSystem value)
AWS_GREENGRASS_API Aws::String SerializePayload() const override
CreateSoftwareUpdateJobRequest & WithUpdateTargets(UpdateTargetsT &&value)
CreateSoftwareUpdateJobRequest & WithAmznClientToken(AmznClientTokenT &&value)
AWS_GREENGRASS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSoftwareUpdateJobRequest & WithUpdateTargetsOperatingSystem(UpdateTargetsOperatingSystem value)
CreateSoftwareUpdateJobRequest & WithSoftwareToUpdate(SoftwareToUpdate 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