AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
EnvironmentInfoDescription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
11#include <aws/elasticbeanstalk/model/EnvironmentInfoType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElasticBeanstalk {
22namespace Model {
23
31 public:
32 AWS_ELASTICBEANSTALK_API EnvironmentInfoDescription() = default;
33 AWS_ELASTICBEANSTALK_API EnvironmentInfoDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_ELASTICBEANSTALK_API EnvironmentInfoDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
37 const char* locationValue) const;
38 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline EnvironmentInfoType GetInfoType() const { return m_infoType; }
45 inline bool InfoTypeHasBeenSet() const { return m_infoTypeHasBeenSet; }
46 inline void SetInfoType(EnvironmentInfoType value) {
47 m_infoTypeHasBeenSet = true;
48 m_infoType = value;
49 }
51 SetInfoType(value);
52 return *this;
53 }
55
57
60 inline const Aws::String& GetEc2InstanceId() const { return m_ec2InstanceId; }
61 inline bool Ec2InstanceIdHasBeenSet() const { return m_ec2InstanceIdHasBeenSet; }
62 template <typename Ec2InstanceIdT = Aws::String>
63 void SetEc2InstanceId(Ec2InstanceIdT&& value) {
64 m_ec2InstanceIdHasBeenSet = true;
65 m_ec2InstanceId = std::forward<Ec2InstanceIdT>(value);
66 }
67 template <typename Ec2InstanceIdT = Aws::String>
69 SetEc2InstanceId(std::forward<Ec2InstanceIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetSampleTimestamp() const { return m_sampleTimestamp; }
79 inline bool SampleTimestampHasBeenSet() const { return m_sampleTimestampHasBeenSet; }
80 template <typename SampleTimestampT = Aws::Utils::DateTime>
81 void SetSampleTimestamp(SampleTimestampT&& value) {
82 m_sampleTimestampHasBeenSet = true;
83 m_sampleTimestamp = std::forward<SampleTimestampT>(value);
84 }
85 template <typename SampleTimestampT = Aws::Utils::DateTime>
87 SetSampleTimestamp(std::forward<SampleTimestampT>(value));
88 return *this;
89 }
91
93
99 inline const Aws::String& GetMessage() const { return m_message; }
100 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
101 template <typename MessageT = Aws::String>
102 void SetMessage(MessageT&& value) {
103 m_messageHasBeenSet = true;
104 m_message = std::forward<MessageT>(value);
105 }
106 template <typename MessageT = Aws::String>
108 SetMessage(std::forward<MessageT>(value));
109 return *this;
110 }
112 private:
114
115 Aws::String m_ec2InstanceId;
116
117 Aws::Utils::DateTime m_sampleTimestamp{};
118
119 Aws::String m_message;
120 bool m_infoTypeHasBeenSet = false;
121 bool m_ec2InstanceIdHasBeenSet = false;
122 bool m_sampleTimestampHasBeenSet = false;
123 bool m_messageHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace ElasticBeanstalk
128} // namespace Aws
EnvironmentInfoDescription & WithInfoType(EnvironmentInfoType value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EnvironmentInfoDescription & WithEc2InstanceId(Ec2InstanceIdT &&value)
AWS_ELASTICBEANSTALK_API EnvironmentInfoDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EnvironmentInfoDescription & WithSampleTimestamp(SampleTimestampT &&value)
EnvironmentInfoDescription & WithMessage(MessageT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICBEANSTALK_API EnvironmentInfoDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API EnvironmentInfoDescription()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream