AWS SDK for C++

AWS SDK for C++ Version 1.11.872

Loading...
Searching...
No Matches
IpamRoutingPolicyRegistrationDelta.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/IpamRoutingPolicyRegistrationDeltaState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API IpamRoutingPolicyRegistrationDelta() = 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
42 inline const Aws::String& GetDeltaId() const { return m_deltaId; }
43 inline bool DeltaIdHasBeenSet() const { return m_deltaIdHasBeenSet; }
44 template <typename DeltaIdT = Aws::String>
45 void SetDeltaId(DeltaIdT&& value) {
46 m_deltaIdHasBeenSet = true;
47 m_deltaId = std::forward<DeltaIdT>(value);
48 }
49 template <typename DeltaIdT = Aws::String>
51 SetDeltaId(std::forward<DeltaIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDeltaJson() const { return m_deltaJson; }
61 inline bool DeltaJsonHasBeenSet() const { return m_deltaJsonHasBeenSet; }
62 template <typename DeltaJsonT = Aws::String>
63 void SetDeltaJson(DeltaJsonT&& value) {
64 m_deltaJsonHasBeenSet = true;
65 m_deltaJson = std::forward<DeltaJsonT>(value);
66 }
67 template <typename DeltaJsonT = Aws::String>
69 SetDeltaJson(std::forward<DeltaJsonT>(value));
70 return *this;
71 }
73
75
79 inline IpamRoutingPolicyRegistrationDeltaState GetState() const { return m_state; }
80 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
82 m_stateHasBeenSet = true;
83 m_state = value;
84 }
86 SetState(value);
87 return *this;
88 }
90
92
96 inline const Aws::String& GetStateMessage() const { return m_stateMessage; }
97 inline bool StateMessageHasBeenSet() const { return m_stateMessageHasBeenSet; }
98 template <typename StateMessageT = Aws::String>
99 void SetStateMessage(StateMessageT&& value) {
100 m_stateMessageHasBeenSet = true;
101 m_stateMessage = std::forward<StateMessageT>(value);
102 }
103 template <typename StateMessageT = Aws::String>
105 SetStateMessage(std::forward<StateMessageT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_deltaId;
111
112 Aws::String m_deltaJson;
113
115
116 Aws::String m_stateMessage;
117 bool m_deltaIdHasBeenSet = false;
118 bool m_deltaJsonHasBeenSet = false;
119 bool m_stateHasBeenSet = false;
120 bool m_stateMessageHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace EC2
125} // namespace Aws
IpamRoutingPolicyRegistrationDelta & WithDeltaJson(DeltaJsonT &&value)
AWS_EC2_API IpamRoutingPolicyRegistrationDelta & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetState(IpamRoutingPolicyRegistrationDeltaState value)
IpamRoutingPolicyRegistrationDelta & WithStateMessage(StateMessageT &&value)
IpamRoutingPolicyRegistrationDelta & WithDeltaId(DeltaIdT &&value)
IpamRoutingPolicyRegistrationDeltaState GetState() const
IpamRoutingPolicyRegistrationDelta & WithState(IpamRoutingPolicyRegistrationDeltaState value)
AWS_EC2_API IpamRoutingPolicyRegistrationDelta(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream