AWS SDK for C++  1.9.159
AWS SDK for C++
UpdatePackageRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ElasticsearchService
16 {
17 namespace Model
18 {
19 
27  {
28  public:
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 "UpdatePackage"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
43  inline const Aws::String& GetPackageID() const{ return m_packageID; }
44 
48  inline bool PackageIDHasBeenSet() const { return m_packageIDHasBeenSet; }
49 
53  inline void SetPackageID(const Aws::String& value) { m_packageIDHasBeenSet = true; m_packageID = value; }
54 
58  inline void SetPackageID(Aws::String&& value) { m_packageIDHasBeenSet = true; m_packageID = std::move(value); }
59 
63  inline void SetPackageID(const char* value) { m_packageIDHasBeenSet = true; m_packageID.assign(value); }
64 
68  inline UpdatePackageRequest& WithPackageID(const Aws::String& value) { SetPackageID(value); return *this;}
69 
73  inline UpdatePackageRequest& WithPackageID(Aws::String&& value) { SetPackageID(std::move(value)); return *this;}
74 
78  inline UpdatePackageRequest& WithPackageID(const char* value) { SetPackageID(value); return *this;}
79 
80 
81 
82  inline const PackageSource& GetPackageSource() const{ return m_packageSource; }
83 
84 
85  inline bool PackageSourceHasBeenSet() const { return m_packageSourceHasBeenSet; }
86 
87 
88  inline void SetPackageSource(const PackageSource& value) { m_packageSourceHasBeenSet = true; m_packageSource = value; }
89 
90 
91  inline void SetPackageSource(PackageSource&& value) { m_packageSourceHasBeenSet = true; m_packageSource = std::move(value); }
92 
93 
94  inline UpdatePackageRequest& WithPackageSource(const PackageSource& value) { SetPackageSource(value); return *this;}
95 
96 
97  inline UpdatePackageRequest& WithPackageSource(PackageSource&& value) { SetPackageSource(std::move(value)); return *this;}
98 
99 
103  inline const Aws::String& GetPackageDescription() const{ return m_packageDescription; }
104 
108  inline bool PackageDescriptionHasBeenSet() const { return m_packageDescriptionHasBeenSet; }
109 
113  inline void SetPackageDescription(const Aws::String& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = value; }
114 
118  inline void SetPackageDescription(Aws::String&& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = std::move(value); }
119 
123  inline void SetPackageDescription(const char* value) { m_packageDescriptionHasBeenSet = true; m_packageDescription.assign(value); }
124 
128  inline UpdatePackageRequest& WithPackageDescription(const Aws::String& value) { SetPackageDescription(value); return *this;}
129 
133  inline UpdatePackageRequest& WithPackageDescription(Aws::String&& value) { SetPackageDescription(std::move(value)); return *this;}
134 
138  inline UpdatePackageRequest& WithPackageDescription(const char* value) { SetPackageDescription(value); return *this;}
139 
140 
145  inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; }
146 
151  inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
152 
157  inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; }
158 
163  inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); }
164 
169  inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); }
170 
175  inline UpdatePackageRequest& WithCommitMessage(const Aws::String& value) { SetCommitMessage(value); return *this;}
176 
181  inline UpdatePackageRequest& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;}
182 
187  inline UpdatePackageRequest& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;}
188 
189  private:
190 
191  Aws::String m_packageID;
192  bool m_packageIDHasBeenSet;
193 
194  PackageSource m_packageSource;
195  bool m_packageSourceHasBeenSet;
196 
197  Aws::String m_packageDescription;
198  bool m_packageDescriptionHasBeenSet;
199 
200  Aws::String m_commitMessage;
201  bool m_commitMessageHasBeenSet;
202  };
203 
204 } // namespace Model
205 } // namespace ElasticsearchService
206 } // namespace Aws
Aws::ElasticsearchService::Model::UpdatePackageRequest::PackageSourceHasBeenSet
bool PackageSourceHasBeenSet() const
Definition: UpdatePackageRequest.h:85
Aws::ElasticsearchService::Model::UpdatePackageRequest::SetPackageSource
void SetPackageSource(PackageSource &&value)
Definition: UpdatePackageRequest.h:91
Aws::ElasticsearchService::Model::UpdatePackageRequest::WithCommitMessage
UpdatePackageRequest & WithCommitMessage(Aws::String &&value)
Definition: UpdatePackageRequest.h:181
Aws::ElasticsearchService::ElasticsearchServiceRequest
Definition: ElasticsearchServiceRequest.h:17
ElasticsearchServiceRequest.h
Aws::ElasticsearchService::Model::UpdatePackageRequest::GetPackageID
const Aws::String & GetPackageID() const
Definition: UpdatePackageRequest.h:43
PackageSource.h
Aws::ElasticsearchService::Model::UpdatePackageRequest::WithPackageSource
UpdatePackageRequest & WithPackageSource(const PackageSource &value)
Definition: UpdatePackageRequest.h:94
Aws::ElasticsearchService::Model::UpdatePackageRequest::WithCommitMessage
UpdatePackageRequest & WithCommitMessage(const char *value)
Definition: UpdatePackageRequest.h:187
Aws::ElasticsearchService::Model::UpdatePackageRequest::WithPackageID
UpdatePackageRequest & WithPackageID(Aws::String &&value)
Definition: UpdatePackageRequest.h:73
Aws::ElasticsearchService::Model::UpdatePackageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ElasticsearchService::Model::UpdatePackageRequest::SetCommitMessage
void SetCommitMessage(Aws::String &&value)
Definition: UpdatePackageRequest.h:163
Aws::ElasticsearchService::Model::UpdatePackageRequest::WithCommitMessage
UpdatePackageRequest & WithCommitMessage(const Aws::String &value)
Definition: UpdatePackageRequest.h:175
Aws::ElasticsearchService::Model::UpdatePackageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdatePackageRequest.h:35
Aws::ElasticsearchService::Model::UpdatePackageRequest::WithPackageSource
UpdatePackageRequest & WithPackageSource(PackageSource &&value)
Definition: UpdatePackageRequest.h:97
Aws::ElasticsearchService::Model::UpdatePackageRequest::SetCommitMessage
void SetCommitMessage(const Aws::String &value)
Definition: UpdatePackageRequest.h:157
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::UpdatePackageRequest::WithPackageDescription
UpdatePackageRequest & WithPackageDescription(const Aws::String &value)
Definition: UpdatePackageRequest.h:128
Aws::ElasticsearchService::Model::UpdatePackageRequest::WithPackageID
UpdatePackageRequest & WithPackageID(const Aws::String &value)
Definition: UpdatePackageRequest.h:68
AWSString.h
Aws::ElasticsearchService::Model::UpdatePackageRequest::WithPackageDescription
UpdatePackageRequest & WithPackageDescription(Aws::String &&value)
Definition: UpdatePackageRequest.h:133
Aws::ElasticsearchService::Model::UpdatePackageRequest::CommitMessageHasBeenSet
bool CommitMessageHasBeenSet() const
Definition: UpdatePackageRequest.h:151
Aws::ElasticsearchService::Model::UpdatePackageRequest::WithPackageID
UpdatePackageRequest & WithPackageID(const char *value)
Definition: UpdatePackageRequest.h:78
Aws::ElasticsearchService::Model::UpdatePackageRequest::UpdatePackageRequest
UpdatePackageRequest()
Aws::ElasticsearchService::Model::UpdatePackageRequest::PackageDescriptionHasBeenSet
bool PackageDescriptionHasBeenSet() const
Definition: UpdatePackageRequest.h:108
Aws::ElasticsearchService::Model::UpdatePackageRequest
Definition: UpdatePackageRequest.h:27
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::UpdatePackageRequest::PackageIDHasBeenSet
bool PackageIDHasBeenSet() const
Definition: UpdatePackageRequest.h:48
Aws::ElasticsearchService::Model::UpdatePackageRequest::SetPackageSource
void SetPackageSource(const PackageSource &value)
Definition: UpdatePackageRequest.h:88
Aws::ElasticsearchService::Model::UpdatePackageRequest::GetPackageDescription
const Aws::String & GetPackageDescription() const
Definition: UpdatePackageRequest.h:103
Aws::ElasticsearchService::Model::UpdatePackageRequest::SetPackageID
void SetPackageID(const char *value)
Definition: UpdatePackageRequest.h:63
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::UpdatePackageRequest::WithPackageDescription
UpdatePackageRequest & WithPackageDescription(const char *value)
Definition: UpdatePackageRequest.h:138
Aws::ElasticsearchService::Model::UpdatePackageRequest::SetCommitMessage
void SetCommitMessage(const char *value)
Definition: UpdatePackageRequest.h:169
Aws::ElasticsearchService::Model::UpdatePackageRequest::GetCommitMessage
const Aws::String & GetCommitMessage() const
Definition: UpdatePackageRequest.h:145
Aws::ElasticsearchService::Model::UpdatePackageRequest::SetPackageID
void SetPackageID(const Aws::String &value)
Definition: UpdatePackageRequest.h:53
Aws::ElasticsearchService::Model::UpdatePackageRequest::SetPackageDescription
void SetPackageDescription(const char *value)
Definition: UpdatePackageRequest.h:123
Aws::ElasticsearchService::Model::UpdatePackageRequest::SetPackageID
void SetPackageID(Aws::String &&value)
Definition: UpdatePackageRequest.h:58
Aws::ElasticsearchService::Model::UpdatePackageRequest::SetPackageDescription
void SetPackageDescription(const Aws::String &value)
Definition: UpdatePackageRequest.h:113
Aws::ElasticsearchService::Model::UpdatePackageRequest::GetPackageSource
const PackageSource & GetPackageSource() const
Definition: UpdatePackageRequest.h:82
Aws::ElasticsearchService::Model::UpdatePackageRequest::SetPackageDescription
void SetPackageDescription(Aws::String &&value)
Definition: UpdatePackageRequest.h:118
Aws::ElasticsearchService::Model::PackageSource
Definition: PackageSource.h:33