AWS SDK for C++  0.12.9
AWS SDK for C++
TrafficPolicySummary.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 
35  {
36  public:
39  TrafficPolicySummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40 
41  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42 
43 
44  inline const Aws::String& GetId() const{ return m_id; }
45 
46 
47  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
48 
49 
50  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
51 
52 
53  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 
55 
56  inline TrafficPolicySummary& WithId(const Aws::String& value) { SetId(value); return *this;}
57 
58 
59  inline TrafficPolicySummary& WithId(Aws::String&& value) { SetId(value); return *this;}
60 
61 
62  inline TrafficPolicySummary& WithId(const char* value) { SetId(value); return *this;}
63 
64 
65  inline const Aws::String& GetName() const{ return m_name; }
66 
67 
68  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
69 
70 
71  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
72 
73 
74  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
75 
76 
77  inline TrafficPolicySummary& WithName(const Aws::String& value) { SetName(value); return *this;}
78 
79 
80  inline TrafficPolicySummary& WithName(Aws::String&& value) { SetName(value); return *this;}
81 
82 
83  inline TrafficPolicySummary& WithName(const char* value) { SetName(value); return *this;}
84 
85 
86  inline const RRType& GetType() const{ return m_type; }
87 
88 
89  inline void SetType(const RRType& value) { m_typeHasBeenSet = true; m_type = value; }
90 
91 
92  inline void SetType(RRType&& value) { m_typeHasBeenSet = true; m_type = value; }
93 
94 
95  inline TrafficPolicySummary& WithType(const RRType& value) { SetType(value); return *this;}
96 
97 
98  inline TrafficPolicySummary& WithType(RRType&& value) { SetType(value); return *this;}
99 
100 
101  inline long GetLatestVersion() const{ return m_latestVersion; }
102 
103 
104  inline void SetLatestVersion(long value) { m_latestVersionHasBeenSet = true; m_latestVersion = value; }
105 
106 
107  inline TrafficPolicySummary& WithLatestVersion(long value) { SetLatestVersion(value); return *this;}
108 
109 
110  inline long GetTrafficPolicyCount() const{ return m_trafficPolicyCount; }
111 
112 
113  inline void SetTrafficPolicyCount(long value) { m_trafficPolicyCountHasBeenSet = true; m_trafficPolicyCount = value; }
114 
115 
116  inline TrafficPolicySummary& WithTrafficPolicyCount(long value) { SetTrafficPolicyCount(value); return *this;}
117 
118  private:
119  Aws::String m_id;
120  bool m_idHasBeenSet;
121  Aws::String m_name;
122  bool m_nameHasBeenSet;
123  RRType m_type;
124  bool m_typeHasBeenSet;
125  long m_latestVersion;
126  bool m_latestVersionHasBeenSet;
127  long m_trafficPolicyCount;
128  bool m_trafficPolicyCountHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace Route53
133 } // namespace Aws
TrafficPolicySummary & WithLatestVersion(long value)
TrafficPolicySummary & WithType(RRType &&value)
TrafficPolicySummary & WithId(const Aws::String &value)
TrafficPolicySummary & WithName(const Aws::String &value)
void SetName(const Aws::String &value)
TrafficPolicySummary & WithTrafficPolicyCount(long value)
TrafficPolicySummary & WithName(const char *value)
TrafficPolicySummary & WithType(const RRType &value)
TrafficPolicySummary & WithId(const char *value)
#define AWS_ROUTE53_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TrafficPolicySummary & WithId(Aws::String &&value)
TrafficPolicySummary & WithName(Aws::String &&value)
JSON (JavaScript Object Notation).