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/InstanceState.h>
49 template<
typename InstanceIdT = Aws::String>
50 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet =
true; m_instanceId = std::forward<InstanceIdT>(value); }
51 template<
typename InstanceIdT = Aws::String>
61 template<
typename CurrentStateT = InstanceState>
62 void SetCurrentState(CurrentStateT&& value) { m_currentStateHasBeenSet =
true; m_currentState = std::forward<CurrentStateT>(value); }
63 template<
typename CurrentStateT = InstanceState>
73 template<
typename PreviousStateT = InstanceState>
74 void SetPreviousState(PreviousStateT&& value) { m_previousStateHasBeenSet =
true; m_previousState = std::forward<PreviousStateT>(value); }
75 template<
typename PreviousStateT = InstanceState>
81 bool m_instanceIdHasBeenSet =
false;
84 bool m_currentStateHasBeenSet =
false;
87 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