AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnvironmentInfoDescription.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/elasticbeanstalk/model/EnvironmentInfoType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElasticBeanstalk
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ELASTICBEANSTALK_API EnvironmentInfoDescription();
38 AWS_ELASTICBEANSTALK_API EnvironmentInfoDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_ELASTICBEANSTALK_API EnvironmentInfoDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const EnvironmentInfoType& GetInfoType() const{ return m_infoType; }
50 inline bool InfoTypeHasBeenSet() const { return m_infoTypeHasBeenSet; }
51 inline void SetInfoType(const EnvironmentInfoType& value) { m_infoTypeHasBeenSet = true; m_infoType = value; }
52 inline void SetInfoType(EnvironmentInfoType&& value) { m_infoTypeHasBeenSet = true; m_infoType = std::move(value); }
53 inline EnvironmentInfoDescription& WithInfoType(const EnvironmentInfoType& value) { SetInfoType(value); return *this;}
54 inline EnvironmentInfoDescription& WithInfoType(EnvironmentInfoType&& value) { SetInfoType(std::move(value)); return *this;}
56
58
61 inline const Aws::String& GetEc2InstanceId() const{ return m_ec2InstanceId; }
62 inline bool Ec2InstanceIdHasBeenSet() const { return m_ec2InstanceIdHasBeenSet; }
63 inline void SetEc2InstanceId(const Aws::String& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = value; }
64 inline void SetEc2InstanceId(Aws::String&& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = std::move(value); }
65 inline void SetEc2InstanceId(const char* value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId.assign(value); }
66 inline EnvironmentInfoDescription& WithEc2InstanceId(const Aws::String& value) { SetEc2InstanceId(value); return *this;}
67 inline EnvironmentInfoDescription& WithEc2InstanceId(Aws::String&& value) { SetEc2InstanceId(std::move(value)); return *this;}
68 inline EnvironmentInfoDescription& WithEc2InstanceId(const char* value) { SetEc2InstanceId(value); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetSampleTimestamp() const{ return m_sampleTimestamp; }
76 inline bool SampleTimestampHasBeenSet() const { return m_sampleTimestampHasBeenSet; }
77 inline void SetSampleTimestamp(const Aws::Utils::DateTime& value) { m_sampleTimestampHasBeenSet = true; m_sampleTimestamp = value; }
78 inline void SetSampleTimestamp(Aws::Utils::DateTime&& value) { m_sampleTimestampHasBeenSet = true; m_sampleTimestamp = std::move(value); }
82
84
90 inline const Aws::String& GetMessage() const{ return m_message; }
91 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
92 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
93 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
94 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
95 inline EnvironmentInfoDescription& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
96 inline EnvironmentInfoDescription& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
97 inline EnvironmentInfoDescription& WithMessage(const char* value) { SetMessage(value); return *this;}
99 private:
100
101 EnvironmentInfoType m_infoType;
102 bool m_infoTypeHasBeenSet = false;
103
104 Aws::String m_ec2InstanceId;
105 bool m_ec2InstanceIdHasBeenSet = false;
106
107 Aws::Utils::DateTime m_sampleTimestamp;
108 bool m_sampleTimestampHasBeenSet = false;
109
110 Aws::String m_message;
111 bool m_messageHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace ElasticBeanstalk
116} // namespace Aws
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EnvironmentInfoDescription & WithEc2InstanceId(Aws::String &&value)
EnvironmentInfoDescription & WithEc2InstanceId(const Aws::String &value)
EnvironmentInfoDescription & WithMessage(const Aws::String &value)
AWS_ELASTICBEANSTALK_API EnvironmentInfoDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EnvironmentInfoDescription & WithMessage(Aws::String &&value)
EnvironmentInfoDescription & WithInfoType(EnvironmentInfoType &&value)
EnvironmentInfoDescription & WithSampleTimestamp(Aws::Utils::DateTime &&value)
EnvironmentInfoDescription & WithMessage(const char *value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EnvironmentInfoDescription & WithInfoType(const EnvironmentInfoType &value)
AWS_ELASTICBEANSTALK_API EnvironmentInfoDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
EnvironmentInfoDescription & WithSampleTimestamp(const Aws::Utils::DateTime &value)
EnvironmentInfoDescription & WithEc2InstanceId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream