AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdatePackageScopeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/opensearch/OpenSearchServiceRequest.h>
10#include <aws/opensearch/OpenSearchService_EXPORTS.h>
11#include <aws/opensearch/model/PackageScopeOperationEnum.h>
12
13#include <utility>
14
15namespace Aws {
16namespace OpenSearchService {
17namespace Model {
18
22 public:
23 AWS_OPENSEARCHSERVICE_API UpdatePackageScopeRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdatePackageScope"; }
30
31 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetPackageID() const { return m_packageID; }
38 inline bool PackageIDHasBeenSet() const { return m_packageIDHasBeenSet; }
39 template <typename PackageIDT = Aws::String>
40 void SetPackageID(PackageIDT&& value) {
41 m_packageIDHasBeenSet = true;
42 m_packageID = std::forward<PackageIDT>(value);
43 }
44 template <typename PackageIDT = Aws::String>
46 SetPackageID(std::forward<PackageIDT>(value));
47 return *this;
48 }
50
52
56 inline PackageScopeOperationEnum GetOperation() const { return m_operation; }
57 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
59 m_operationHasBeenSet = true;
60 m_operation = value;
61 }
63 SetOperation(value);
64 return *this;
65 }
67
69
72 inline const Aws::Vector<Aws::String>& GetPackageUserList() const { return m_packageUserList; }
73 inline bool PackageUserListHasBeenSet() const { return m_packageUserListHasBeenSet; }
74 template <typename PackageUserListT = Aws::Vector<Aws::String>>
75 void SetPackageUserList(PackageUserListT&& value) {
76 m_packageUserListHasBeenSet = true;
77 m_packageUserList = std::forward<PackageUserListT>(value);
78 }
79 template <typename PackageUserListT = Aws::Vector<Aws::String>>
81 SetPackageUserList(std::forward<PackageUserListT>(value));
82 return *this;
83 }
84 template <typename PackageUserListT = Aws::String>
85 UpdatePackageScopeRequest& AddPackageUserList(PackageUserListT&& value) {
86 m_packageUserListHasBeenSet = true;
87 m_packageUserList.emplace_back(std::forward<PackageUserListT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_packageID;
93
95
96 Aws::Vector<Aws::String> m_packageUserList;
97 bool m_packageIDHasBeenSet = false;
98 bool m_operationHasBeenSet = false;
99 bool m_packageUserListHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace OpenSearchService
104} // namespace Aws
const Aws::Vector< Aws::String > & GetPackageUserList() const
AWS_OPENSEARCHSERVICE_API UpdatePackageScopeRequest()=default
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
UpdatePackageScopeRequest & WithOperation(PackageScopeOperationEnum value)
UpdatePackageScopeRequest & AddPackageUserList(PackageUserListT &&value)
UpdatePackageScopeRequest & WithPackageID(PackageIDT &&value)
UpdatePackageScopeRequest & WithPackageUserList(PackageUserListT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector