AWS SDK for C++  1.9.97
AWS SDK for C++
AssociatePackageRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ElasticsearchService
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "AssociatePackage"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
43  inline const Aws::String& GetPackageID() const{ return m_packageID; }
44 
49  inline bool PackageIDHasBeenSet() const { return m_packageIDHasBeenSet; }
50 
55  inline void SetPackageID(const Aws::String& value) { m_packageIDHasBeenSet = true; m_packageID = value; }
56 
61  inline void SetPackageID(Aws::String&& value) { m_packageIDHasBeenSet = true; m_packageID = std::move(value); }
62 
67  inline void SetPackageID(const char* value) { m_packageIDHasBeenSet = true; m_packageID.assign(value); }
68 
73  inline AssociatePackageRequest& WithPackageID(const Aws::String& value) { SetPackageID(value); return *this;}
74 
79  inline AssociatePackageRequest& WithPackageID(Aws::String&& value) { SetPackageID(std::move(value)); return *this;}
80 
85  inline AssociatePackageRequest& WithPackageID(const char* value) { SetPackageID(value); return *this;}
86 
87 
91  inline const Aws::String& GetDomainName() const{ return m_domainName; }
92 
96  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
97 
101  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
102 
106  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
107 
111  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
112 
116  inline AssociatePackageRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
117 
121  inline AssociatePackageRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
122 
126  inline AssociatePackageRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
127 
128  private:
129 
130  Aws::String m_packageID;
131  bool m_packageIDHasBeenSet;
132 
133  Aws::String m_domainName;
134  bool m_domainNameHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace ElasticsearchService
139 } // namespace Aws
Aws::ElasticsearchService::Model::AssociatePackageRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: AssociatePackageRequest.h:106
Aws::ElasticsearchService::Model::AssociatePackageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ElasticsearchService::ElasticsearchServiceRequest
Definition: ElasticsearchServiceRequest.h:17
Aws::ElasticsearchService::Model::AssociatePackageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociatePackageRequest.h:34
ElasticsearchServiceRequest.h
Aws::ElasticsearchService::Model::AssociatePackageRequest::SetPackageID
void SetPackageID(const Aws::String &value)
Definition: AssociatePackageRequest.h:55
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::AssociatePackageRequest::SetPackageID
void SetPackageID(Aws::String &&value)
Definition: AssociatePackageRequest.h:61
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::AssociatePackageRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: AssociatePackageRequest.h:91
Aws::ElasticsearchService::Model::AssociatePackageRequest::PackageIDHasBeenSet
bool PackageIDHasBeenSet() const
Definition: AssociatePackageRequest.h:49
Aws::ElasticsearchService::Model::AssociatePackageRequest::WithDomainName
AssociatePackageRequest & WithDomainName(Aws::String &&value)
Definition: AssociatePackageRequest.h:121
Aws::ElasticsearchService::Model::AssociatePackageRequest::GetPackageID
const Aws::String & GetPackageID() const
Definition: AssociatePackageRequest.h:43
Aws::ElasticsearchService::Model::AssociatePackageRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: AssociatePackageRequest.h:96
Aws::ElasticsearchService::Model::AssociatePackageRequest::SetDomainName
void SetDomainName(const char *value)
Definition: AssociatePackageRequest.h:111
AWSString.h
Aws::ElasticsearchService::Model::AssociatePackageRequest::AssociatePackageRequest
AssociatePackageRequest()
Aws::ElasticsearchService::Model::AssociatePackageRequest::WithPackageID
AssociatePackageRequest & WithPackageID(const Aws::String &value)
Definition: AssociatePackageRequest.h:73
Aws::ElasticsearchService::Model::AssociatePackageRequest::WithPackageID
AssociatePackageRequest & WithPackageID(Aws::String &&value)
Definition: AssociatePackageRequest.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::AssociatePackageRequest
Definition: AssociatePackageRequest.h:26
Aws::ElasticsearchService::Model::AssociatePackageRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: AssociatePackageRequest.h:101
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::AssociatePackageRequest::SetPackageID
void SetPackageID(const char *value)
Definition: AssociatePackageRequest.h:67
Aws::ElasticsearchService::Model::AssociatePackageRequest::WithDomainName
AssociatePackageRequest & WithDomainName(const char *value)
Definition: AssociatePackageRequest.h:126
Aws::ElasticsearchService::Model::AssociatePackageRequest::WithPackageID
AssociatePackageRequest & WithPackageID(const char *value)
Definition: AssociatePackageRequest.h:85
Aws::ElasticsearchService::Model::AssociatePackageRequest::WithDomainName
AssociatePackageRequest & WithDomainName(const Aws::String &value)
Definition: AssociatePackageRequest.h:116