AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DissociatePackagesRequest.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
12#include <utility>
13
14namespace Aws {
15namespace OpenSearchService {
16namespace Model {
17
21 public:
22 AWS_OPENSEARCHSERVICE_API DissociatePackagesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DissociatePackages"; }
29
30 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::Vector<Aws::String>& GetPackageList() const { return m_packageList; }
37 inline bool PackageListHasBeenSet() const { return m_packageListHasBeenSet; }
38 template <typename PackageListT = Aws::Vector<Aws::String>>
39 void SetPackageList(PackageListT&& value) {
40 m_packageListHasBeenSet = true;
41 m_packageList = std::forward<PackageListT>(value);
42 }
43 template <typename PackageListT = Aws::Vector<Aws::String>>
45 SetPackageList(std::forward<PackageListT>(value));
46 return *this;
47 }
48 template <typename PackageListT = Aws::String>
50 m_packageListHasBeenSet = true;
51 m_packageList.emplace_back(std::forward<PackageListT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetDomainName() const { return m_domainName; }
59 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
60 template <typename DomainNameT = Aws::String>
61 void SetDomainName(DomainNameT&& value) {
62 m_domainNameHasBeenSet = true;
63 m_domainName = std::forward<DomainNameT>(value);
64 }
65 template <typename DomainNameT = Aws::String>
67 SetDomainName(std::forward<DomainNameT>(value));
68 return *this;
69 }
71 private:
72 Aws::Vector<Aws::String> m_packageList;
73
74 Aws::String m_domainName;
75 bool m_packageListHasBeenSet = false;
76 bool m_domainNameHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace OpenSearchService
81} // namespace Aws
const Aws::Vector< Aws::String > & GetPackageList() const
DissociatePackagesRequest & WithPackageList(PackageListT &&value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
DissociatePackagesRequest & AddPackageList(PackageListT &&value)
DissociatePackagesRequest & WithDomainName(DomainNameT &&value)
AWS_OPENSEARCHSERVICE_API DissociatePackagesRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector