AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SpotDatafeedSubscription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/DatafeedSubscriptionState.h>
11#include <aws/ec2/model/SpotInstanceStateFault.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
30 public:
31 AWS_EC2_API SpotDatafeedSubscription() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
43 inline const Aws::String& GetBucket() const { return m_bucket; }
44 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
45 template <typename BucketT = Aws::String>
46 void SetBucket(BucketT&& value) {
47 m_bucketHasBeenSet = true;
48 m_bucket = std::forward<BucketT>(value);
49 }
50 template <typename BucketT = Aws::String>
52 SetBucket(std::forward<BucketT>(value));
53 return *this;
54 }
56
58
61 inline const SpotInstanceStateFault& GetFault() const { return m_fault; }
62 inline bool FaultHasBeenSet() const { return m_faultHasBeenSet; }
63 template <typename FaultT = SpotInstanceStateFault>
64 void SetFault(FaultT&& value) {
65 m_faultHasBeenSet = true;
66 m_fault = std::forward<FaultT>(value);
67 }
68 template <typename FaultT = SpotInstanceStateFault>
70 SetFault(std::forward<FaultT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
80 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
81 template <typename OwnerIdT = Aws::String>
82 void SetOwnerId(OwnerIdT&& value) {
83 m_ownerIdHasBeenSet = true;
84 m_ownerId = std::forward<OwnerIdT>(value);
85 }
86 template <typename OwnerIdT = Aws::String>
88 SetOwnerId(std::forward<OwnerIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetPrefix() const { return m_prefix; }
98 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
99 template <typename PrefixT = Aws::String>
100 void SetPrefix(PrefixT&& value) {
101 m_prefixHasBeenSet = true;
102 m_prefix = std::forward<PrefixT>(value);
103 }
104 template <typename PrefixT = Aws::String>
106 SetPrefix(std::forward<PrefixT>(value));
107 return *this;
108 }
110
112
115 inline DatafeedSubscriptionState GetState() const { return m_state; }
116 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
118 m_stateHasBeenSet = true;
119 m_state = value;
120 }
122 SetState(value);
123 return *this;
124 }
126 private:
127 Aws::String m_bucket;
128
130
131 Aws::String m_ownerId;
132
133 Aws::String m_prefix;
134
136 bool m_bucketHasBeenSet = false;
137 bool m_faultHasBeenSet = false;
138 bool m_ownerIdHasBeenSet = false;
139 bool m_prefixHasBeenSet = false;
140 bool m_stateHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace EC2
145} // namespace Aws
SpotDatafeedSubscription & WithBucket(BucketT &&value)
AWS_EC2_API SpotDatafeedSubscription(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SpotDatafeedSubscription & WithState(DatafeedSubscriptionState value)
void SetState(DatafeedSubscriptionState value)
SpotDatafeedSubscription & WithFault(FaultT &&value)
const SpotInstanceStateFault & GetFault() const
AWS_EC2_API SpotDatafeedSubscription()=default
SpotDatafeedSubscription & WithPrefix(PrefixT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API SpotDatafeedSubscription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SpotDatafeedSubscription & WithOwnerId(OwnerIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream