AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSpotDatafeedSubscriptionRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace EC2
15{
16namespace 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_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
50 inline bool GetDryRun() const { return m_dryRun; }
51 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
52 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 inline CreateSpotDatafeedSubscriptionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
55
57
63 inline const Aws::String& GetBucket() const { return m_bucket; }
64 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
65 template<typename BucketT = Aws::String>
66 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
67 template<typename BucketT = Aws::String>
68 CreateSpotDatafeedSubscriptionRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
70
72
75 inline const Aws::String& GetPrefix() const { return m_prefix; }
76 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
77 template<typename PrefixT = Aws::String>
78 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
79 template<typename PrefixT = Aws::String>
80 CreateSpotDatafeedSubscriptionRequest& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
82 private:
83
84 bool m_dryRun{false};
85 bool m_dryRunHasBeenSet = false;
86
87 Aws::String m_bucket;
88 bool m_bucketHasBeenSet = false;
89
90 Aws::String m_prefix;
91 bool m_prefixHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace EC2
96} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
CreateSpotDatafeedSubscriptionRequest & WithBucket(BucketT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateSpotDatafeedSubscriptionRequest & WithDryRun(bool value)
CreateSpotDatafeedSubscriptionRequest & WithPrefix(PrefixT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String