AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
52 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
53 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
54 inline SpotDatafeedSubscription& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
55 inline SpotDatafeedSubscription& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
56 inline SpotDatafeedSubscription& WithBucket(const char* value) { SetBucket(value); return *this;}
58
60
63 inline const SpotInstanceStateFault& GetFault() const{ return m_fault; }
64 inline bool FaultHasBeenSet() const { return m_faultHasBeenSet; }
65 inline void SetFault(const SpotInstanceStateFault& value) { m_faultHasBeenSet = true; m_fault = value; }
66 inline void SetFault(SpotInstanceStateFault&& value) { m_faultHasBeenSet = true; m_fault = std::move(value); }
67 inline SpotDatafeedSubscription& WithFault(const SpotInstanceStateFault& value) { SetFault(value); return *this;}
68 inline SpotDatafeedSubscription& WithFault(SpotInstanceStateFault&& value) { SetFault(std::move(value)); return *this;}
70
72
75 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
76 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
77 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
78 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
79 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
80 inline SpotDatafeedSubscription& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
81 inline SpotDatafeedSubscription& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
82 inline SpotDatafeedSubscription& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
84
86
89 inline const Aws::String& GetPrefix() const{ return m_prefix; }
90 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
91 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
92 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
93 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
94 inline SpotDatafeedSubscription& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
95 inline SpotDatafeedSubscription& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
96 inline SpotDatafeedSubscription& WithPrefix(const char* value) { SetPrefix(value); return *this;}
98
100
103 inline const DatafeedSubscriptionState& GetState() const{ return m_state; }
104 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
105 inline void SetState(const DatafeedSubscriptionState& value) { m_stateHasBeenSet = true; m_state = value; }
106 inline void SetState(DatafeedSubscriptionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
107 inline SpotDatafeedSubscription& WithState(const DatafeedSubscriptionState& value) { SetState(value); return *this;}
108 inline SpotDatafeedSubscription& WithState(DatafeedSubscriptionState&& value) { SetState(std::move(value)); return *this;}
110 private:
111
112 Aws::String m_bucket;
113 bool m_bucketHasBeenSet = false;
114
116 bool m_faultHasBeenSet = false;
117
118 Aws::String m_ownerId;
119 bool m_ownerIdHasBeenSet = false;
120
121 Aws::String m_prefix;
122 bool m_prefixHasBeenSet = false;
123
125 bool m_stateHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace EC2
130} // namespace Aws
SpotDatafeedSubscription & WithPrefix(const Aws::String &value)
AWS_EC2_API SpotDatafeedSubscription(const Aws::Utils::Xml::XmlNode &xmlNode)
SpotDatafeedSubscription & WithOwnerId(const char *value)
void SetFault(SpotInstanceStateFault &&value)
SpotDatafeedSubscription & WithFault(const SpotInstanceStateFault &value)
SpotDatafeedSubscription & WithPrefix(Aws::String &&value)
void SetFault(const SpotInstanceStateFault &value)
void SetState(DatafeedSubscriptionState &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetState(const DatafeedSubscriptionState &value)
SpotDatafeedSubscription & WithBucket(const Aws::String &value)
SpotDatafeedSubscription & WithBucket(Aws::String &&value)
SpotDatafeedSubscription & WithOwnerId(const Aws::String &value)
const SpotInstanceStateFault & GetFault() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SpotDatafeedSubscription & WithState(const DatafeedSubscriptionState &value)
SpotDatafeedSubscription & WithPrefix(const char *value)
AWS_EC2_API SpotDatafeedSubscription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const DatafeedSubscriptionState & GetState() const
SpotDatafeedSubscription & WithState(DatafeedSubscriptionState &&value)
SpotDatafeedSubscription & WithOwnerId(Aws::String &&value)
SpotDatafeedSubscription & WithBucket(const char *value)
SpotDatafeedSubscription & WithFault(SpotInstanceStateFault &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream