AWS SDK for C++  1.9.70
AWS SDK for C++
CreateSpotDatafeedSubscriptionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
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 "CreateSpotDatafeedSubscription"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
49  inline const Aws::String& GetBucket() const{ return m_bucket; }
50 
57  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
58 
65  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
66 
73  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
74 
81  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
82 
89  inline CreateSpotDatafeedSubscriptionRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
90 
97  inline CreateSpotDatafeedSubscriptionRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
98 
105  inline CreateSpotDatafeedSubscriptionRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
106 
107 
114  inline bool GetDryRun() const{ return m_dryRun; }
115 
122  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
123 
130  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
131 
138  inline CreateSpotDatafeedSubscriptionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
139 
140 
144  inline const Aws::String& GetPrefix() const{ return m_prefix; }
145 
149  inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
150 
154  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
155 
159  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
160 
164  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
165 
169  inline CreateSpotDatafeedSubscriptionRequest& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
170 
174  inline CreateSpotDatafeedSubscriptionRequest& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
175 
179  inline CreateSpotDatafeedSubscriptionRequest& WithPrefix(const char* value) { SetPrefix(value); return *this;}
180 
181  private:
182 
183  Aws::String m_bucket;
184  bool m_bucketHasBeenSet;
185 
186  bool m_dryRun;
187  bool m_dryRunHasBeenSet;
188 
189  Aws::String m_prefix;
190  bool m_prefixHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace EC2
195 } // namespace Aws
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest
Definition: CreateSpotDatafeedSubscriptionRequest.h:26
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: CreateSpotDatafeedSubscriptionRequest.h:57
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: CreateSpotDatafeedSubscriptionRequest.h:73
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::WithDryRun
CreateSpotDatafeedSubscriptionRequest & WithDryRun(bool value)
Definition: CreateSpotDatafeedSubscriptionRequest.h:138
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateSpotDatafeedSubscriptionRequest.h:130
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::WithBucket
CreateSpotDatafeedSubscriptionRequest & WithBucket(Aws::String &&value)
Definition: CreateSpotDatafeedSubscriptionRequest.h:97
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::GetDryRun
bool GetDryRun() const
Definition: CreateSpotDatafeedSubscriptionRequest.h:114
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::CreateSpotDatafeedSubscriptionRequest
CreateSpotDatafeedSubscriptionRequest()
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::SetBucket
void SetBucket(const char *value)
Definition: CreateSpotDatafeedSubscriptionRequest.h:81
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::GetBucket
const Aws::String & GetBucket() const
Definition: CreateSpotDatafeedSubscriptionRequest.h:49
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::WithBucket
CreateSpotDatafeedSubscriptionRequest & WithBucket(const char *value)
Definition: CreateSpotDatafeedSubscriptionRequest.h:105
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: CreateSpotDatafeedSubscriptionRequest.h:159
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::SerializePayload
Aws::String SerializePayload() const override
EC2Request.h
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSpotDatafeedSubscriptionRequest.h:34
AWSString.h
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::WithPrefix
CreateSpotDatafeedSubscriptionRequest & WithPrefix(Aws::String &&value)
Definition: CreateSpotDatafeedSubscriptionRequest.h:174
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: CreateSpotDatafeedSubscriptionRequest.h:65
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::WithPrefix
CreateSpotDatafeedSubscriptionRequest & WithPrefix(const char *value)
Definition: CreateSpotDatafeedSubscriptionRequest.h:179
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::SetPrefix
void SetPrefix(const char *value)
Definition: CreateSpotDatafeedSubscriptionRequest.h:164
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: CreateSpotDatafeedSubscriptionRequest.h:154
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateSpotDatafeedSubscriptionRequest.h:122
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: CreateSpotDatafeedSubscriptionRequest.h:149
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::WithBucket
CreateSpotDatafeedSubscriptionRequest & WithBucket(const Aws::String &value)
Definition: CreateSpotDatafeedSubscriptionRequest.h:89
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::WithPrefix
CreateSpotDatafeedSubscriptionRequest & WithPrefix(const Aws::String &value)
Definition: CreateSpotDatafeedSubscriptionRequest.h:169
Aws::EC2::Model::CreateSpotDatafeedSubscriptionRequest::GetPrefix
const Aws::String & GetPrefix() const
Definition: CreateSpotDatafeedSubscriptionRequest.h:144
EC2_EXPORTS.h