AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
49 inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
50 inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
52 inline CreateSoftwareUpdateJobRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
53 inline CreateSoftwareUpdateJobRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
55
57
58 inline const Aws::String& GetS3UrlSignerRole() const{ return m_s3UrlSignerRole; }
59 inline bool S3UrlSignerRoleHasBeenSet() const { return m_s3UrlSignerRoleHasBeenSet; }
60 inline void SetS3UrlSignerRole(const Aws::String& value) { m_s3UrlSignerRoleHasBeenSet = true; m_s3UrlSignerRole = value; }
61 inline void SetS3UrlSignerRole(Aws::String&& value) { m_s3UrlSignerRoleHasBeenSet = true; m_s3UrlSignerRole = std::move(value); }
62 inline void SetS3UrlSignerRole(const char* value) { m_s3UrlSignerRoleHasBeenSet = true; m_s3UrlSignerRole.assign(value); }
64 inline CreateSoftwareUpdateJobRequest& WithS3UrlSignerRole(Aws::String&& value) { SetS3UrlSignerRole(std::move(value)); return *this;}
65 inline CreateSoftwareUpdateJobRequest& WithS3UrlSignerRole(const char* value) { SetS3UrlSignerRole(value); return *this;}
67
69
70 inline const SoftwareToUpdate& GetSoftwareToUpdate() const{ return m_softwareToUpdate; }
71 inline bool SoftwareToUpdateHasBeenSet() const { return m_softwareToUpdateHasBeenSet; }
72 inline void SetSoftwareToUpdate(const SoftwareToUpdate& value) { m_softwareToUpdateHasBeenSet = true; m_softwareToUpdate = value; }
73 inline void SetSoftwareToUpdate(SoftwareToUpdate&& value) { m_softwareToUpdateHasBeenSet = true; m_softwareToUpdate = std::move(value); }
77
79
80 inline const UpdateAgentLogLevel& GetUpdateAgentLogLevel() const{ return m_updateAgentLogLevel; }
81 inline bool UpdateAgentLogLevelHasBeenSet() const { return m_updateAgentLogLevelHasBeenSet; }
82 inline void SetUpdateAgentLogLevel(const UpdateAgentLogLevel& value) { m_updateAgentLogLevelHasBeenSet = true; m_updateAgentLogLevel = value; }
83 inline void SetUpdateAgentLogLevel(UpdateAgentLogLevel&& value) { m_updateAgentLogLevelHasBeenSet = true; m_updateAgentLogLevel = std::move(value); }
87
89
90 inline const Aws::Vector<Aws::String>& GetUpdateTargets() const{ return m_updateTargets; }
91 inline bool UpdateTargetsHasBeenSet() const { return m_updateTargetsHasBeenSet; }
92 inline void SetUpdateTargets(const Aws::Vector<Aws::String>& value) { m_updateTargetsHasBeenSet = true; m_updateTargets = value; }
93 inline void SetUpdateTargets(Aws::Vector<Aws::String>&& value) { m_updateTargetsHasBeenSet = true; m_updateTargets = std::move(value); }
96 inline CreateSoftwareUpdateJobRequest& AddUpdateTargets(const Aws::String& value) { m_updateTargetsHasBeenSet = true; m_updateTargets.push_back(value); return *this; }
97 inline CreateSoftwareUpdateJobRequest& AddUpdateTargets(Aws::String&& value) { m_updateTargetsHasBeenSet = true; m_updateTargets.push_back(std::move(value)); return *this; }
98 inline CreateSoftwareUpdateJobRequest& AddUpdateTargets(const char* value) { m_updateTargetsHasBeenSet = true; m_updateTargets.push_back(value); return *this; }
100
102
103 inline const UpdateTargetsArchitecture& GetUpdateTargetsArchitecture() const{ return m_updateTargetsArchitecture; }
104 inline bool UpdateTargetsArchitectureHasBeenSet() const { return m_updateTargetsArchitectureHasBeenSet; }
105 inline void SetUpdateTargetsArchitecture(const UpdateTargetsArchitecture& value) { m_updateTargetsArchitectureHasBeenSet = true; m_updateTargetsArchitecture = value; }
106 inline void SetUpdateTargetsArchitecture(UpdateTargetsArchitecture&& value) { m_updateTargetsArchitectureHasBeenSet = true; m_updateTargetsArchitecture = std::move(value); }
110
112
113 inline const UpdateTargetsOperatingSystem& GetUpdateTargetsOperatingSystem() const{ return m_updateTargetsOperatingSystem; }
114 inline bool UpdateTargetsOperatingSystemHasBeenSet() const { return m_updateTargetsOperatingSystemHasBeenSet; }
115 inline void SetUpdateTargetsOperatingSystem(const UpdateTargetsOperatingSystem& value) { m_updateTargetsOperatingSystemHasBeenSet = true; m_updateTargetsOperatingSystem = value; }
116 inline void SetUpdateTargetsOperatingSystem(UpdateTargetsOperatingSystem&& value) { m_updateTargetsOperatingSystemHasBeenSet = true; m_updateTargetsOperatingSystem = std::move(value); }
120 private:
121
122 Aws::String m_amznClientToken;
123 bool m_amznClientTokenHasBeenSet = false;
124
125 Aws::String m_s3UrlSignerRole;
126 bool m_s3UrlSignerRoleHasBeenSet = false;
127
128 SoftwareToUpdate m_softwareToUpdate;
129 bool m_softwareToUpdateHasBeenSet = false;
130
131 UpdateAgentLogLevel m_updateAgentLogLevel;
132 bool m_updateAgentLogLevelHasBeenSet = false;
133
134 Aws::Vector<Aws::String> m_updateTargets;
135 bool m_updateTargetsHasBeenSet = false;
136
137 UpdateTargetsArchitecture m_updateTargetsArchitecture;
138 bool m_updateTargetsArchitectureHasBeenSet = false;
139
140 UpdateTargetsOperatingSystem m_updateTargetsOperatingSystem;
141 bool m_updateTargetsOperatingSystemHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Greengrass
146} // namespace Aws
CreateSoftwareUpdateJobRequest & WithUpdateTargetsArchitecture(UpdateTargetsArchitecture &&value)
CreateSoftwareUpdateJobRequest & WithUpdateAgentLogLevel(const UpdateAgentLogLevel &value)
CreateSoftwareUpdateJobRequest & WithAmznClientToken(Aws::String &&value)
CreateSoftwareUpdateJobRequest & WithUpdateTargetsArchitecture(const UpdateTargetsArchitecture &value)
CreateSoftwareUpdateJobRequest & WithUpdateTargetsOperatingSystem(const UpdateTargetsOperatingSystem &value)
const UpdateTargetsOperatingSystem & GetUpdateTargetsOperatingSystem() const
CreateSoftwareUpdateJobRequest & WithUpdateTargetsOperatingSystem(UpdateTargetsOperatingSystem &&value)
CreateSoftwareUpdateJobRequest & WithAmznClientToken(const Aws::String &value)
void SetUpdateTargetsOperatingSystem(UpdateTargetsOperatingSystem &&value)
CreateSoftwareUpdateJobRequest & WithUpdateAgentLogLevel(UpdateAgentLogLevel &&value)
void SetUpdateTargetsArchitecture(const UpdateTargetsArchitecture &value)
CreateSoftwareUpdateJobRequest & WithAmznClientToken(const char *value)
void SetUpdateTargetsOperatingSystem(const UpdateTargetsOperatingSystem &value)
CreateSoftwareUpdateJobRequest & WithSoftwareToUpdate(const SoftwareToUpdate &value)
CreateSoftwareUpdateJobRequest & AddUpdateTargets(const char *value)
CreateSoftwareUpdateJobRequest & WithUpdateTargets(const Aws::Vector< Aws::String > &value)
AWS_GREENGRASS_API Aws::String SerializePayload() const override
CreateSoftwareUpdateJobRequest & AddUpdateTargets(const Aws::String &value)
CreateSoftwareUpdateJobRequest & WithUpdateTargets(Aws::Vector< Aws::String > &&value)
void SetUpdateTargets(const Aws::Vector< Aws::String > &value)
AWS_GREENGRASS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSoftwareUpdateJobRequest & WithSoftwareToUpdate(SoftwareToUpdate &&value)
CreateSoftwareUpdateJobRequest & WithS3UrlSignerRole(const char *value)
CreateSoftwareUpdateJobRequest & AddUpdateTargets(Aws::String &&value)
const UpdateTargetsArchitecture & GetUpdateTargetsArchitecture() const
CreateSoftwareUpdateJobRequest & WithS3UrlSignerRole(const Aws::String &value)
CreateSoftwareUpdateJobRequest & WithS3UrlSignerRole(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