AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AssociatePackagesRequest.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/PackageDetailsForAssociation.h>
12
13#include <utility>
14
15namespace Aws {
16namespace OpenSearchService {
17namespace Model {
18
22 public:
23 AWS_OPENSEARCHSERVICE_API AssociatePackagesRequest() = 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 "AssociatePackages"; }
30
31 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::Vector<PackageDetailsForAssociation>& GetPackageList() const { return m_packageList; }
39 inline bool PackageListHasBeenSet() const { return m_packageListHasBeenSet; }
40 template <typename PackageListT = Aws::Vector<PackageDetailsForAssociation>>
41 void SetPackageList(PackageListT&& value) {
42 m_packageListHasBeenSet = true;
43 m_packageList = std::forward<PackageListT>(value);
44 }
45 template <typename PackageListT = Aws::Vector<PackageDetailsForAssociation>>
47 SetPackageList(std::forward<PackageListT>(value));
48 return *this;
49 }
50 template <typename PackageListT = PackageDetailsForAssociation>
52 m_packageListHasBeenSet = true;
53 m_packageList.emplace_back(std::forward<PackageListT>(value));
54 return *this;
55 }
57
59
60 inline const Aws::String& GetDomainName() const { return m_domainName; }
61 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
62 template <typename DomainNameT = Aws::String>
63 void SetDomainName(DomainNameT&& value) {
64 m_domainNameHasBeenSet = true;
65 m_domainName = std::forward<DomainNameT>(value);
66 }
67 template <typename DomainNameT = Aws::String>
69 SetDomainName(std::forward<DomainNameT>(value));
70 return *this;
71 }
73 private:
75
76 Aws::String m_domainName;
77 bool m_packageListHasBeenSet = false;
78 bool m_domainNameHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace OpenSearchService
83} // namespace Aws
const Aws::Vector< PackageDetailsForAssociation > & GetPackageList() const
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
AWS_OPENSEARCHSERVICE_API AssociatePackagesRequest()=default
AssociatePackagesRequest & AddPackageList(PackageListT &&value)
AssociatePackagesRequest & WithPackageList(PackageListT &&value)
AssociatePackagesRequest & WithDomainName(DomainNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector