AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSoftwareUpdateJobRequest.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/greengrass/GreengrassRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/greengrass/model/SoftwareToUpdate.h>
11#include <aws/greengrass/model/UpdateAgentLogLevel.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/greengrass/model/UpdateTargetsArchitecture.h>
14#include <aws/greengrass/model/UpdateTargetsOperatingSystem.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Greengrass
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_GREENGRASS_API CreateSoftwareUpdateJobRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateSoftwareUpdateJob"; }
36
37 AWS_GREENGRASS_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetAmznClientToken() const { return m_amznClientToken; }
47 inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
48 template<typename AmznClientTokenT = Aws::String>
49 void SetAmznClientToken(AmznClientTokenT&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::forward<AmznClientTokenT>(value); }
50 template<typename AmznClientTokenT = Aws::String>
51 CreateSoftwareUpdateJobRequest& WithAmznClientToken(AmznClientTokenT&& value) { SetAmznClientToken(std::forward<AmznClientTokenT>(value)); return *this;}
53
55
56 inline const Aws::String& GetS3UrlSignerRole() const { return m_s3UrlSignerRole; }
57 inline bool S3UrlSignerRoleHasBeenSet() const { return m_s3UrlSignerRoleHasBeenSet; }
58 template<typename S3UrlSignerRoleT = Aws::String>
59 void SetS3UrlSignerRole(S3UrlSignerRoleT&& value) { m_s3UrlSignerRoleHasBeenSet = true; m_s3UrlSignerRole = std::forward<S3UrlSignerRoleT>(value); }
60 template<typename S3UrlSignerRoleT = Aws::String>
61 CreateSoftwareUpdateJobRequest& WithS3UrlSignerRole(S3UrlSignerRoleT&& value) { SetS3UrlSignerRole(std::forward<S3UrlSignerRoleT>(value)); return *this;}
63
65
66 inline SoftwareToUpdate GetSoftwareToUpdate() const { return m_softwareToUpdate; }
67 inline bool SoftwareToUpdateHasBeenSet() const { return m_softwareToUpdateHasBeenSet; }
68 inline void SetSoftwareToUpdate(SoftwareToUpdate value) { m_softwareToUpdateHasBeenSet = true; m_softwareToUpdate = value; }
71
73
74 inline UpdateAgentLogLevel GetUpdateAgentLogLevel() const { return m_updateAgentLogLevel; }
75 inline bool UpdateAgentLogLevelHasBeenSet() const { return m_updateAgentLogLevelHasBeenSet; }
76 inline void SetUpdateAgentLogLevel(UpdateAgentLogLevel value) { m_updateAgentLogLevelHasBeenSet = true; m_updateAgentLogLevel = value; }
79
81
82 inline const Aws::Vector<Aws::String>& GetUpdateTargets() const { return m_updateTargets; }
83 inline bool UpdateTargetsHasBeenSet() const { return m_updateTargetsHasBeenSet; }
84 template<typename UpdateTargetsT = Aws::Vector<Aws::String>>
85 void SetUpdateTargets(UpdateTargetsT&& value) { m_updateTargetsHasBeenSet = true; m_updateTargets = std::forward<UpdateTargetsT>(value); }
86 template<typename UpdateTargetsT = Aws::Vector<Aws::String>>
87 CreateSoftwareUpdateJobRequest& WithUpdateTargets(UpdateTargetsT&& value) { SetUpdateTargets(std::forward<UpdateTargetsT>(value)); return *this;}
88 template<typename UpdateTargetsT = Aws::String>
89 CreateSoftwareUpdateJobRequest& AddUpdateTargets(UpdateTargetsT&& value) { m_updateTargetsHasBeenSet = true; m_updateTargets.emplace_back(std::forward<UpdateTargetsT>(value)); return *this; }
91
93
94 inline UpdateTargetsArchitecture GetUpdateTargetsArchitecture() const { return m_updateTargetsArchitecture; }
95 inline bool UpdateTargetsArchitectureHasBeenSet() const { return m_updateTargetsArchitectureHasBeenSet; }
96 inline void SetUpdateTargetsArchitecture(UpdateTargetsArchitecture value) { m_updateTargetsArchitectureHasBeenSet = true; m_updateTargetsArchitecture = value; }
99
101
102 inline UpdateTargetsOperatingSystem GetUpdateTargetsOperatingSystem() const { return m_updateTargetsOperatingSystem; }
103 inline bool UpdateTargetsOperatingSystemHasBeenSet() const { return m_updateTargetsOperatingSystemHasBeenSet; }
104 inline void SetUpdateTargetsOperatingSystem(UpdateTargetsOperatingSystem value) { m_updateTargetsOperatingSystemHasBeenSet = true; m_updateTargetsOperatingSystem = value; }
107 private:
108
109 Aws::String m_amznClientToken;
110 bool m_amznClientTokenHasBeenSet = false;
111
112 Aws::String m_s3UrlSignerRole;
113 bool m_s3UrlSignerRoleHasBeenSet = false;
114
116 bool m_softwareToUpdateHasBeenSet = false;
117
119 bool m_updateAgentLogLevelHasBeenSet = false;
120
121 Aws::Vector<Aws::String> m_updateTargets;
122 bool m_updateTargetsHasBeenSet = false;
123
125 bool m_updateTargetsArchitectureHasBeenSet = false;
126
128 bool m_updateTargetsOperatingSystemHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace Greengrass
133} // 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