AWS SDK for C++  1.9.129
AWS SDK for C++
LabelOptions.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace CloudWatch
22 {
23 namespace Model
24 {
25 
39  {
40  public:
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
48 
56  inline const Aws::String& GetTimezone() const{ return m_timezone; }
57 
65  inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
66 
74  inline void SetTimezone(const Aws::String& value) { m_timezoneHasBeenSet = true; m_timezone = value; }
75 
83  inline void SetTimezone(Aws::String&& value) { m_timezoneHasBeenSet = true; m_timezone = std::move(value); }
84 
92  inline void SetTimezone(const char* value) { m_timezoneHasBeenSet = true; m_timezone.assign(value); }
93 
101  inline LabelOptions& WithTimezone(const Aws::String& value) { SetTimezone(value); return *this;}
102 
110  inline LabelOptions& WithTimezone(Aws::String&& value) { SetTimezone(std::move(value)); return *this;}
111 
119  inline LabelOptions& WithTimezone(const char* value) { SetTimezone(value); return *this;}
120 
121  private:
122 
123  Aws::String m_timezone;
124  bool m_timezoneHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace CloudWatch
129 } // namespace Aws
AWS_CLOUDWATCH_API
#define AWS_CLOUDWATCH_API
Definition: CloudWatch_EXPORTS.h:28
Aws::CloudWatch::Model::LabelOptions::WithTimezone
LabelOptions & WithTimezone(const char *value)
Definition: LabelOptions.h:119
Aws::CloudWatch::Model::LabelOptions::GetTimezone
const Aws::String & GetTimezone() const
Definition: LabelOptions.h:56
Aws::CloudWatch::Model::LabelOptions::WithTimezone
LabelOptions & WithTimezone(const Aws::String &value)
Definition: LabelOptions.h:101
AWSStreamFwd.h
Aws::CloudWatch::Model::LabelOptions::LabelOptions
LabelOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::CloudWatch::Model::LabelOptions::TimezoneHasBeenSet
bool TimezoneHasBeenSet() const
Definition: LabelOptions.h:65
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudWatch::Model::LabelOptions::SetTimezone
void SetTimezone(Aws::String &&value)
Definition: LabelOptions.h:83
Aws::CloudWatch::Model::LabelOptions::SetTimezone
void SetTimezone(const Aws::String &value)
Definition: LabelOptions.h:74
Aws::CloudWatch::Model::LabelOptions::SetTimezone
void SetTimezone(const char *value)
Definition: LabelOptions.h:92
Aws::CloudWatch::Model::LabelOptions
Definition: LabelOptions.h:39
AWSString.h
Aws::CloudWatch::Model::LabelOptions::operator=
LabelOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudWatch::Model::LabelOptions::WithTimezone
LabelOptions & WithTimezone(Aws::String &&value)
Definition: LabelOptions.h:110
CloudWatch_EXPORTS.h
Aws::CloudWatch::Model::LabelOptions::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudWatch::Model::LabelOptions::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
index
int index
Definition: cJSON.h:181
Aws::CloudWatch::Model::LabelOptions::LabelOptions
LabelOptions()