AWS SDK for C++  0.12.9
AWS SDK for C++
EnvironmentInfoDescription.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace ElasticBeanstalk
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  EnvironmentInfoDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const EnvironmentInfoType& GetInfoType() const{ return m_infoType; }
53 
57  inline void SetInfoType(const EnvironmentInfoType& value) { m_infoTypeHasBeenSet = true; m_infoType = value; }
58 
62  inline void SetInfoType(EnvironmentInfoType&& value) { m_infoTypeHasBeenSet = true; m_infoType = value; }
63 
67  inline EnvironmentInfoDescription& WithInfoType(const EnvironmentInfoType& value) { SetInfoType(value); return *this;}
68 
72  inline EnvironmentInfoDescription& WithInfoType(EnvironmentInfoType&& value) { SetInfoType(value); return *this;}
73 
77  inline const Aws::String& GetEc2InstanceId() const{ return m_ec2InstanceId; }
78 
82  inline void SetEc2InstanceId(const Aws::String& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = value; }
83 
87  inline void SetEc2InstanceId(Aws::String&& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = value; }
88 
92  inline void SetEc2InstanceId(const char* value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId.assign(value); }
93 
97  inline EnvironmentInfoDescription& WithEc2InstanceId(const Aws::String& value) { SetEc2InstanceId(value); return *this;}
98 
102  inline EnvironmentInfoDescription& WithEc2InstanceId(Aws::String&& value) { SetEc2InstanceId(value); return *this;}
103 
107  inline EnvironmentInfoDescription& WithEc2InstanceId(const char* value) { SetEc2InstanceId(value); return *this;}
108 
112  inline const Aws::Utils::DateTime& GetSampleTimestamp() const{ return m_sampleTimestamp; }
113 
117  inline void SetSampleTimestamp(const Aws::Utils::DateTime& value) { m_sampleTimestampHasBeenSet = true; m_sampleTimestamp = value; }
118 
122  inline void SetSampleTimestamp(Aws::Utils::DateTime&& value) { m_sampleTimestampHasBeenSet = true; m_sampleTimestamp = value; }
123 
127  inline EnvironmentInfoDescription& WithSampleTimestamp(const Aws::Utils::DateTime& value) { SetSampleTimestamp(value); return *this;}
128 
132  inline EnvironmentInfoDescription& WithSampleTimestamp(Aws::Utils::DateTime&& value) { SetSampleTimestamp(value); return *this;}
133 
137  inline const Aws::String& GetMessage() const{ return m_message; }
138 
142  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
143 
147  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
148 
152  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
153 
157  inline EnvironmentInfoDescription& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
158 
162  inline EnvironmentInfoDescription& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
163 
167  inline EnvironmentInfoDescription& WithMessage(const char* value) { SetMessage(value); return *this;}
168 
169  private:
170  EnvironmentInfoType m_infoType;
171  bool m_infoTypeHasBeenSet;
172  Aws::String m_ec2InstanceId;
173  bool m_ec2InstanceIdHasBeenSet;
174  Aws::Utils::DateTime m_sampleTimestamp;
175  bool m_sampleTimestampHasBeenSet;
176  Aws::String m_message;
177  bool m_messageHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace ElasticBeanstalk
182 } // namespace Aws
EnvironmentInfoDescription & WithInfoType(const EnvironmentInfoType &value)
#define AWS_ELASTICBEANSTALK_API
EnvironmentInfoDescription & WithEc2InstanceId(const char *value)
EnvironmentInfoDescription & WithInfoType(EnvironmentInfoType &&value)
EnvironmentInfoDescription & WithMessage(const char *value)
EnvironmentInfoDescription & WithMessage(const Aws::String &value)
EnvironmentInfoDescription & WithEc2InstanceId(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EnvironmentInfoDescription & WithEc2InstanceId(Aws::String &&value)
EnvironmentInfoDescription & WithSampleTimestamp(const Aws::Utils::DateTime &value)
EnvironmentInfoDescription & WithMessage(Aws::String &&value)
EnvironmentInfoDescription & WithSampleTimestamp(Aws::Utils::DateTime &&value)
JSON (JavaScript Object Notation).