AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateSpotDatafeedSubscriptionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateSpotDatafeedSubscription"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
46 inline bool GetDryRun() const { return m_dryRun; }
47 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
48 inline void SetDryRun(bool value) {
49 m_dryRunHasBeenSet = true;
50 m_dryRun = value;
51 }
53 SetDryRun(value);
54 return *this;
55 }
57
59
65 inline const Aws::String& GetBucket() const { return m_bucket; }
66 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
67 template <typename BucketT = Aws::String>
68 void SetBucket(BucketT&& value) {
69 m_bucketHasBeenSet = true;
70 m_bucket = std::forward<BucketT>(value);
71 }
72 template <typename BucketT = Aws::String>
74 SetBucket(std::forward<BucketT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetPrefix() const { return m_prefix; }
84 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
85 template <typename PrefixT = Aws::String>
86 void SetPrefix(PrefixT&& value) {
87 m_prefixHasBeenSet = true;
88 m_prefix = std::forward<PrefixT>(value);
89 }
90 template <typename PrefixT = Aws::String>
92 SetPrefix(std::forward<PrefixT>(value));
93 return *this;
94 }
96 private:
97 bool m_dryRun{false};
98
99 Aws::String m_bucket;
100
101 Aws::String m_prefix;
102 bool m_dryRunHasBeenSet = false;
103 bool m_bucketHasBeenSet = false;
104 bool m_prefixHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace EC2
109} // 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