AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SpotDatafeedSubscription.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/SpotInstanceStateFault.h>
11#include <aws/ec2/model/DatafeedSubscriptionState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API SpotDatafeedSubscription() = default;
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline const Aws::String& GetBucket() const { return m_bucket; }
50 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
51 template<typename BucketT = Aws::String>
52 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
53 template<typename BucketT = Aws::String>
54 SpotDatafeedSubscription& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
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) { m_faultHasBeenSet = true; m_fault = std::forward<FaultT>(value); }
65 template<typename FaultT = SpotInstanceStateFault>
66 SpotDatafeedSubscription& WithFault(FaultT&& value) { SetFault(std::forward<FaultT>(value)); return *this;}
68
70
73 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
74 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
75 template<typename OwnerIdT = Aws::String>
76 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
77 template<typename OwnerIdT = Aws::String>
78 SpotDatafeedSubscription& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
80
82
85 inline const Aws::String& GetPrefix() const { return m_prefix; }
86 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
87 template<typename PrefixT = Aws::String>
88 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
89 template<typename PrefixT = Aws::String>
90 SpotDatafeedSubscription& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
92
94
97 inline DatafeedSubscriptionState GetState() const { return m_state; }
98 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
99 inline void SetState(DatafeedSubscriptionState value) { m_stateHasBeenSet = true; m_state = value; }
102 private:
103
104 Aws::String m_bucket;
105 bool m_bucketHasBeenSet = false;
106
108 bool m_faultHasBeenSet = false;
109
110 Aws::String m_ownerId;
111 bool m_ownerIdHasBeenSet = false;
112
113 Aws::String m_prefix;
114 bool m_prefixHasBeenSet = false;
115
117 bool m_stateHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace EC2
122} // 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