AWS SDK for C++  0.14.3
AWS SDK for C++
AlarmIdentifier.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace Route53
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  AlarmIdentifier& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46 
51  inline const CloudWatchRegion& GetRegion() const{ return m_region; }
52 
57  inline void SetRegion(const CloudWatchRegion& value) { m_regionHasBeenSet = true; m_region = value; }
58 
63  inline void SetRegion(CloudWatchRegion&& value) { m_regionHasBeenSet = true; m_region = value; }
64 
69  inline AlarmIdentifier& WithRegion(const CloudWatchRegion& value) { SetRegion(value); return *this;}
70 
75  inline AlarmIdentifier& WithRegion(CloudWatchRegion&& value) { SetRegion(value); return *this;}
76 
80  inline const Aws::String& GetName() const{ return m_name; }
81 
85  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
86 
90  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
91 
95  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
96 
100  inline AlarmIdentifier& WithName(const Aws::String& value) { SetName(value); return *this;}
101 
105  inline AlarmIdentifier& WithName(Aws::String&& value) { SetName(value); return *this;}
106 
110  inline AlarmIdentifier& WithName(const char* value) { SetName(value); return *this;}
111 
112  private:
113  CloudWatchRegion m_region;
114  bool m_regionHasBeenSet;
115  Aws::String m_name;
116  bool m_nameHasBeenSet;
117  };
118 
119 } // namespace Model
120 } // namespace Route53
121 } // namespace Aws
AlarmIdentifier & WithName(Aws::String &&value)
void SetRegion(CloudWatchRegion &&value)
void SetName(const Aws::String &value)
AlarmIdentifier & WithName(const Aws::String &value)
AlarmIdentifier & WithRegion(const CloudWatchRegion &value)
void SetName(Aws::String &&value)
const CloudWatchRegion & GetRegion() const
AlarmIdentifier & WithName(const char *value)
void SetRegion(const CloudWatchRegion &value)
AlarmIdentifier & WithRegion(CloudWatchRegion &&value)
const Aws::String & GetName() const
#define AWS_ROUTE53_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JSON (JavaScript Object Notation).