AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdatePackageScopeResult.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/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/PackageScopeOperationEnum.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchService {
24namespace Model {
26 public:
27 AWS_OPENSEARCHSERVICE_API UpdatePackageScopeResult() = default;
30
32
35 inline const Aws::String& GetPackageID() const { return m_packageID; }
36 template <typename PackageIDT = Aws::String>
37 void SetPackageID(PackageIDT&& value) {
38 m_packageIDHasBeenSet = true;
39 m_packageID = std::forward<PackageIDT>(value);
40 }
41 template <typename PackageIDT = Aws::String>
43 SetPackageID(std::forward<PackageIDT>(value));
44 return *this;
45 }
47
49
52 inline PackageScopeOperationEnum GetOperation() const { return m_operation; }
54 m_operationHasBeenSet = true;
55 m_operation = value;
56 }
58 SetOperation(value);
59 return *this;
60 }
62
64
67 inline const Aws::Vector<Aws::String>& GetPackageUserList() const { return m_packageUserList; }
68 template <typename PackageUserListT = Aws::Vector<Aws::String>>
69 void SetPackageUserList(PackageUserListT&& value) {
70 m_packageUserListHasBeenSet = true;
71 m_packageUserList = std::forward<PackageUserListT>(value);
72 }
73 template <typename PackageUserListT = Aws::Vector<Aws::String>>
74 UpdatePackageScopeResult& WithPackageUserList(PackageUserListT&& value) {
75 SetPackageUserList(std::forward<PackageUserListT>(value));
76 return *this;
77 }
78 template <typename PackageUserListT = Aws::String>
79 UpdatePackageScopeResult& AddPackageUserList(PackageUserListT&& value) {
80 m_packageUserListHasBeenSet = true;
81 m_packageUserList.emplace_back(std::forward<PackageUserListT>(value));
82 return *this;
83 }
85
87
88 inline const Aws::String& GetRequestId() const { return m_requestId; }
89 template <typename RequestIdT = Aws::String>
90 void SetRequestId(RequestIdT&& value) {
91 m_requestIdHasBeenSet = true;
92 m_requestId = std::forward<RequestIdT>(value);
93 }
94 template <typename RequestIdT = Aws::String>
96 SetRequestId(std::forward<RequestIdT>(value));
97 return *this;
98 }
100 private:
101 Aws::String m_packageID;
102
104
105 Aws::Vector<Aws::String> m_packageUserList;
106
107 Aws::String m_requestId;
108 bool m_packageIDHasBeenSet = false;
109 bool m_operationHasBeenSet = false;
110 bool m_packageUserListHasBeenSet = false;
111 bool m_requestIdHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace OpenSearchService
116} // namespace Aws
UpdatePackageScopeResult & AddPackageUserList(PackageUserListT &&value)
UpdatePackageScopeResult & WithOperation(PackageScopeOperationEnum value)
UpdatePackageScopeResult & WithPackageID(PackageIDT &&value)
UpdatePackageScopeResult & WithPackageUserList(PackageUserListT &&value)
const Aws::Vector< Aws::String > & GetPackageUserList() const
AWS_OPENSEARCHSERVICE_API UpdatePackageScopeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdatePackageScopeResult & WithRequestId(RequestIdT &&value)
AWS_OPENSEARCHSERVICE_API UpdatePackageScopeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_OPENSEARCHSERVICE_API UpdatePackageScopeResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue