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/InstanceState.h>
43 template <
typename InstanceIdT = Aws::String>
45 m_instanceIdHasBeenSet =
true;
46 m_instanceId = std::forward<InstanceIdT>(value);
48 template <
typename InstanceIdT = Aws::String>
61 template <
typename CurrentStateT = InstanceState>
63 m_currentStateHasBeenSet =
true;
64 m_currentState = std::forward<CurrentStateT>(value);
66 template <
typename CurrentStateT = InstanceState>
79 template <
typename PreviousStateT = InstanceState>
81 m_previousStateHasBeenSet =
true;
82 m_previousState = std::forward<PreviousStateT>(value);
84 template <
typename PreviousStateT = InstanceState>
96 bool m_instanceIdHasBeenSet =
false;
97 bool m_currentStateHasBeenSet =
false;
98 bool m_previousStateHasBeenSet =
false;
InstanceStateChange & WithCurrentState(CurrentStateT &&value)
bool PreviousStateHasBeenSet() const
InstanceStateChange & WithPreviousState(PreviousStateT &&value)
AWS_EC2_API InstanceStateChange(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCurrentState(CurrentStateT &&value)
AWS_EC2_API InstanceStateChange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const InstanceState & GetPreviousState() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceStateChange & WithInstanceId(InstanceIdT &&value)
bool InstanceIdHasBeenSet() const
void SetInstanceId(InstanceIdT &&value)
const Aws::String & GetInstanceId() const
AWS_EC2_API InstanceStateChange()=default
const InstanceState & GetCurrentState() const
void SetPreviousState(PreviousStateT &&value)
bool CurrentStateHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream