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/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/OpenSearchServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opensearch/model/PackageSource.h>
11#include <utility>
12
13namespace Aws
14{
15namespace OpenSearchService
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_OPENSEARCHSERVICE_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_OPENSEARCHSERVICE_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
58 inline const PackageSource& GetPackageSource() const{ return m_packageSource; }
59 inline bool PackageSourceHasBeenSet() const { return m_packageSourceHasBeenSet; }
60 inline void SetPackageSource(const PackageSource& value) { m_packageSourceHasBeenSet = true; m_packageSource = value; }
61 inline void SetPackageSource(PackageSource&& value) { m_packageSourceHasBeenSet = true; m_packageSource = std::move(value); }
62 inline UpdatePackageRequest& WithPackageSource(const PackageSource& value) { SetPackageSource(value); return *this;}
63 inline UpdatePackageRequest& WithPackageSource(PackageSource&& value) { SetPackageSource(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetPackageDescription() const{ return m_packageDescription; }
71 inline bool PackageDescriptionHasBeenSet() const { return m_packageDescriptionHasBeenSet; }
72 inline void SetPackageDescription(const Aws::String& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = value; }
73 inline void SetPackageDescription(Aws::String&& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = std::move(value); }
74 inline void SetPackageDescription(const char* value) { m_packageDescriptionHasBeenSet = true; m_packageDescription.assign(value); }
76 inline UpdatePackageRequest& WithPackageDescription(Aws::String&& value) { SetPackageDescription(std::move(value)); return *this;}
77 inline UpdatePackageRequest& WithPackageDescription(const char* value) { SetPackageDescription(value); return *this;}
79
81
85 inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; }
86 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
87 inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; }
88 inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); }
89 inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); }
90 inline UpdatePackageRequest& WithCommitMessage(const Aws::String& value) { SetCommitMessage(value); return *this;}
91 inline UpdatePackageRequest& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;}
92 inline UpdatePackageRequest& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;}
94 private:
95
96 Aws::String m_packageID;
97 bool m_packageIDHasBeenSet = false;
98
99 PackageSource m_packageSource;
100 bool m_packageSourceHasBeenSet = false;
101
102 Aws::String m_packageDescription;
103 bool m_packageDescriptionHasBeenSet = false;
104
105 Aws::String m_commitMessage;
106 bool m_commitMessageHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace OpenSearchService
111} // namespace Aws
UpdatePackageRequest & WithCommitMessage(const char *value)
UpdatePackageRequest & WithPackageSource(const PackageSource &value)
UpdatePackageRequest & WithPackageSource(PackageSource &&value)
UpdatePackageRequest & WithPackageDescription(const char *value)
UpdatePackageRequest & WithPackageDescription(Aws::String &&value)
UpdatePackageRequest & WithCommitMessage(const Aws::String &value)
UpdatePackageRequest & WithPackageID(const char *value)
UpdatePackageRequest & WithPackageID(Aws::String &&value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
UpdatePackageRequest & WithPackageID(const Aws::String &value)
UpdatePackageRequest & WithCommitMessage(Aws::String &&value)
UpdatePackageRequest & WithPackageDescription(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String