AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociatePackagesRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/opensearch/model/PackageDetailsForAssociation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace OpenSearchService
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_OPENSEARCHSERVICE_API AssociatePackagesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AssociatePackages"; }
33
34 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::Vector<PackageDetailsForAssociation>& GetPackageList() const { return m_packageList; }
43 inline bool PackageListHasBeenSet() const { return m_packageListHasBeenSet; }
44 template<typename PackageListT = Aws::Vector<PackageDetailsForAssociation>>
45 void SetPackageList(PackageListT&& value) { m_packageListHasBeenSet = true; m_packageList = std::forward<PackageListT>(value); }
46 template<typename PackageListT = Aws::Vector<PackageDetailsForAssociation>>
47 AssociatePackagesRequest& WithPackageList(PackageListT&& value) { SetPackageList(std::forward<PackageListT>(value)); return *this;}
48 template<typename PackageListT = PackageDetailsForAssociation>
49 AssociatePackagesRequest& AddPackageList(PackageListT&& value) { m_packageListHasBeenSet = true; m_packageList.emplace_back(std::forward<PackageListT>(value)); return *this; }
51
53
54 inline const Aws::String& GetDomainName() const { return m_domainName; }
55 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
56 template<typename DomainNameT = Aws::String>
57 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
58 template<typename DomainNameT = Aws::String>
59 AssociatePackagesRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
61 private:
62
64 bool m_packageListHasBeenSet = false;
65
66 Aws::String m_domainName;
67 bool m_domainNameHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace OpenSearchService
72} // 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