AWS SDK for C++  1.9.158
AWS SDK for C++
DeletePackageRequest.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 "DeletePackage"; }
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 DeletePackageRequest& WithPackageID(const Aws::String& value) { SetPackageID(value); return *this;}
74 
79  inline DeletePackageRequest& WithPackageID(Aws::String&& value) { SetPackageID(std::move(value)); return *this;}
80 
85  inline DeletePackageRequest& WithPackageID(const char* value) { SetPackageID(value); return *this;}
86 
87  private:
88 
89  Aws::String m_packageID;
90  bool m_packageIDHasBeenSet;
91  };
92 
93 } // namespace Model
94 } // namespace ElasticsearchService
95 } // namespace Aws
Aws::ElasticsearchService::Model::DeletePackageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeletePackageRequest.h:34
Aws::ElasticsearchService::Model::DeletePackageRequest::WithPackageID
DeletePackageRequest & WithPackageID(const char *value)
Definition: DeletePackageRequest.h:85
Aws::ElasticsearchService::ElasticsearchServiceRequest
Definition: ElasticsearchServiceRequest.h:17
Aws::ElasticsearchService::Model::DeletePackageRequest
Definition: DeletePackageRequest.h:26
ElasticsearchServiceRequest.h
Aws::ElasticsearchService::Model::DeletePackageRequest::PackageIDHasBeenSet
bool PackageIDHasBeenSet() const
Definition: DeletePackageRequest.h:49
Aws::ElasticsearchService::Model::DeletePackageRequest::SetPackageID
void SetPackageID(const Aws::String &value)
Definition: DeletePackageRequest.h:55
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::DeletePackageRequest::SetPackageID
void SetPackageID(const char *value)
Definition: DeletePackageRequest.h:67
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::DeletePackageRequest::DeletePackageRequest
DeletePackageRequest()
Aws::ElasticsearchService::Model::DeletePackageRequest::SetPackageID
void SetPackageID(Aws::String &&value)
Definition: DeletePackageRequest.h:61
Aws::ElasticsearchService::Model::DeletePackageRequest::WithPackageID
DeletePackageRequest & WithPackageID(const Aws::String &value)
Definition: DeletePackageRequest.h:73
Aws::ElasticsearchService::Model::DeletePackageRequest::WithPackageID
DeletePackageRequest & WithPackageID(Aws::String &&value)
Definition: DeletePackageRequest.h:79
AWSString.h
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::DeletePackageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::DeletePackageRequest::GetPackageID
const Aws::String & GetPackageID() const
Definition: DeletePackageRequest.h:43