AWS SDK for C++  0.14.3
AWS SDK for C++
AliasTarget.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace Route53
29 {
30 namespace Model
31 {
32 
46  {
47  public:
48  AliasTarget();
49  AliasTarget(const Aws::Utils::Xml::XmlNode& xmlNode);
50  AliasTarget& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
51 
52  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
53 
73  inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; }
74 
94  inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
95 
115  inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
116 
136  inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); }
137 
157  inline AliasTarget& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;}
158 
178  inline AliasTarget& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(value); return *this;}
179 
199  inline AliasTarget& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;}
200 
235  inline const Aws::String& GetDNSName() const{ return m_dNSName; }
236 
271  inline void SetDNSName(const Aws::String& value) { m_dNSNameHasBeenSet = true; m_dNSName = value; }
272 
307  inline void SetDNSName(Aws::String&& value) { m_dNSNameHasBeenSet = true; m_dNSName = value; }
308 
343  inline void SetDNSName(const char* value) { m_dNSNameHasBeenSet = true; m_dNSName.assign(value); }
344 
379  inline AliasTarget& WithDNSName(const Aws::String& value) { SetDNSName(value); return *this;}
380 
415  inline AliasTarget& WithDNSName(Aws::String&& value) { SetDNSName(value); return *this;}
416 
451  inline AliasTarget& WithDNSName(const char* value) { SetDNSName(value); return *this;}
452 
502  inline bool GetEvaluateTargetHealth() const{ return m_evaluateTargetHealth; }
503 
553  inline void SetEvaluateTargetHealth(bool value) { m_evaluateTargetHealthHasBeenSet = true; m_evaluateTargetHealth = value; }
554 
604  inline AliasTarget& WithEvaluateTargetHealth(bool value) { SetEvaluateTargetHealth(value); return *this;}
605 
606  private:
607  Aws::String m_hostedZoneId;
608  bool m_hostedZoneIdHasBeenSet;
609  Aws::String m_dNSName;
610  bool m_dNSNameHasBeenSet;
611  bool m_evaluateTargetHealth;
612  bool m_evaluateTargetHealthHasBeenSet;
613  };
614 
615 } // namespace Model
616 } // namespace Route53
617 } // namespace Aws
AliasTarget & WithHostedZoneId(const Aws::String &value)
Definition: AliasTarget.h:157
const Aws::String & GetDNSName() const
Definition: AliasTarget.h:235
AliasTarget & WithHostedZoneId(const char *value)
Definition: AliasTarget.h:199
AliasTarget & WithEvaluateTargetHealth(bool value)
Definition: AliasTarget.h:604
AliasTarget & WithHostedZoneId(Aws::String &&value)
Definition: AliasTarget.h:178
void SetDNSName(const Aws::String &value)
Definition: AliasTarget.h:271
AliasTarget & WithDNSName(const char *value)
Definition: AliasTarget.h:451
void SetEvaluateTargetHealth(bool value)
Definition: AliasTarget.h:553
void SetHostedZoneId(const char *value)
Definition: AliasTarget.h:136
AliasTarget & WithDNSName(const Aws::String &value)
Definition: AliasTarget.h:379
#define AWS_ROUTE53_API
void SetHostedZoneId(const Aws::String &value)
Definition: AliasTarget.h:94
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDNSName(const char *value)
Definition: AliasTarget.h:343
const Aws::String & GetHostedZoneId() const
Definition: AliasTarget.h:73
void SetHostedZoneId(Aws::String &&value)
Definition: AliasTarget.h:115
AliasTarget & WithDNSName(Aws::String &&value)
Definition: AliasTarget.h:415
void SetDNSName(Aws::String &&value)
Definition: AliasTarget.h:307
JSON (JavaScript Object Notation).