AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdatePackageRequest.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/ElasticsearchServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/es/model/PackageSource.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ElasticsearchService
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_ELASTICSEARCHSERVICE_API UpdatePackageRequest();
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_ELASTICSEARCHSERVICE_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetPackageID() const{ return m_packageID; }
45 inline bool PackageIDHasBeenSet() const { return m_packageIDHasBeenSet; }
46 inline void SetPackageID(const Aws::String& value) { m_packageIDHasBeenSet = true; m_packageID = value; }
47 inline void SetPackageID(Aws::String&& value) { m_packageIDHasBeenSet = true; m_packageID = std::move(value); }
48 inline void SetPackageID(const char* value) { m_packageIDHasBeenSet = true; m_packageID.assign(value); }
49 inline UpdatePackageRequest& WithPackageID(const Aws::String& value) { SetPackageID(value); return *this;}
50 inline UpdatePackageRequest& WithPackageID(Aws::String&& value) { SetPackageID(std::move(value)); return *this;}
51 inline UpdatePackageRequest& WithPackageID(const char* value) { SetPackageID(value); return *this;}
53
55
56 inline const PackageSource& GetPackageSource() const{ return m_packageSource; }
57 inline bool PackageSourceHasBeenSet() const { return m_packageSourceHasBeenSet; }
58 inline void SetPackageSource(const PackageSource& value) { m_packageSourceHasBeenSet = true; m_packageSource = value; }
59 inline void SetPackageSource(PackageSource&& value) { m_packageSourceHasBeenSet = true; m_packageSource = std::move(value); }
60 inline UpdatePackageRequest& WithPackageSource(const PackageSource& value) { SetPackageSource(value); return *this;}
61 inline UpdatePackageRequest& WithPackageSource(PackageSource&& value) { SetPackageSource(std::move(value)); return *this;}
63
65
68 inline const Aws::String& GetPackageDescription() const{ return m_packageDescription; }
69 inline bool PackageDescriptionHasBeenSet() const { return m_packageDescriptionHasBeenSet; }
70 inline void SetPackageDescription(const Aws::String& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = value; }
71 inline void SetPackageDescription(Aws::String&& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = std::move(value); }
72 inline void SetPackageDescription(const char* value) { m_packageDescriptionHasBeenSet = true; m_packageDescription.assign(value); }
74 inline UpdatePackageRequest& WithPackageDescription(Aws::String&& value) { SetPackageDescription(std::move(value)); return *this;}
75 inline UpdatePackageRequest& WithPackageDescription(const char* value) { SetPackageDescription(value); return *this;}
77
79
83 inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; }
84 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
85 inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; }
86 inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); }
87 inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); }
88 inline UpdatePackageRequest& WithCommitMessage(const Aws::String& value) { SetCommitMessage(value); return *this;}
89 inline UpdatePackageRequest& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;}
90 inline UpdatePackageRequest& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;}
92 private:
93
94 Aws::String m_packageID;
95 bool m_packageIDHasBeenSet = false;
96
97 PackageSource m_packageSource;
98 bool m_packageSourceHasBeenSet = false;
99
100 Aws::String m_packageDescription;
101 bool m_packageDescriptionHasBeenSet = false;
102
103 Aws::String m_commitMessage;
104 bool m_commitMessageHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace ElasticsearchService
109} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API Aws::String SerializePayload() const override
UpdatePackageRequest & WithPackageID(const Aws::String &value)
UpdatePackageRequest & WithPackageID(const char *value)
UpdatePackageRequest & WithPackageSource(const PackageSource &value)
UpdatePackageRequest & WithPackageSource(PackageSource &&value)
UpdatePackageRequest & WithCommitMessage(Aws::String &&value)
UpdatePackageRequest & WithPackageID(Aws::String &&value)
UpdatePackageRequest & WithPackageDescription(const char *value)
UpdatePackageRequest & WithPackageDescription(Aws::String &&value)
UpdatePackageRequest & WithCommitMessage(const Aws::String &value)
AWS_ELASTICSEARCHSERVICE_API UpdatePackageRequest()
virtual const char * GetServiceRequestName() const override
UpdatePackageRequest & WithPackageDescription(const Aws::String &value)
UpdatePackageRequest & WithCommitMessage(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String