AWS SDK for C++  0.12.9
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 
49  {
50  public:
51  AliasTarget();
52  AliasTarget(const Aws::Utils::Xml::XmlNode& xmlNode);
53  AliasTarget& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
54 
55  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
56 
79  inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; }
80 
103  inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
104 
127  inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
128 
151  inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); }
152 
175  inline AliasTarget& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;}
176 
199  inline AliasTarget& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(value); return *this;}
200 
223  inline AliasTarget& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;}
224 
263  inline const Aws::String& GetDNSName() const{ return m_dNSName; }
264 
303  inline void SetDNSName(const Aws::String& value) { m_dNSNameHasBeenSet = true; m_dNSName = value; }
304 
343  inline void SetDNSName(Aws::String&& value) { m_dNSNameHasBeenSet = true; m_dNSName = value; }
344 
383  inline void SetDNSName(const char* value) { m_dNSNameHasBeenSet = true; m_dNSName.assign(value); }
384 
423  inline AliasTarget& WithDNSName(const Aws::String& value) { SetDNSName(value); return *this;}
424 
463  inline AliasTarget& WithDNSName(Aws::String&& value) { SetDNSName(value); return *this;}
464 
503  inline AliasTarget& WithDNSName(const char* value) { SetDNSName(value); return *this;}
504 
558  inline bool GetEvaluateTargetHealth() const{ return m_evaluateTargetHealth; }
559 
613  inline void SetEvaluateTargetHealth(bool value) { m_evaluateTargetHealthHasBeenSet = true; m_evaluateTargetHealth = value; }
614 
668  inline AliasTarget& WithEvaluateTargetHealth(bool value) { SetEvaluateTargetHealth(value); return *this;}
669 
670  private:
671  Aws::String m_hostedZoneId;
672  bool m_hostedZoneIdHasBeenSet;
673  Aws::String m_dNSName;
674  bool m_dNSNameHasBeenSet;
675  bool m_evaluateTargetHealth;
676  bool m_evaluateTargetHealthHasBeenSet;
677  };
678 
679 } // namespace Model
680 } // namespace Route53
681 } // namespace Aws
AliasTarget & WithHostedZoneId(const Aws::String &value)
Definition: AliasTarget.h:175
const Aws::String & GetDNSName() const
Definition: AliasTarget.h:263
AliasTarget & WithHostedZoneId(const char *value)
Definition: AliasTarget.h:223
AliasTarget & WithEvaluateTargetHealth(bool value)
Definition: AliasTarget.h:668
AliasTarget & WithHostedZoneId(Aws::String &&value)
Definition: AliasTarget.h:199
void SetDNSName(const Aws::String &value)
Definition: AliasTarget.h:303
AliasTarget & WithDNSName(const char *value)
Definition: AliasTarget.h:503
void SetEvaluateTargetHealth(bool value)
Definition: AliasTarget.h:613
void SetHostedZoneId(const char *value)
Definition: AliasTarget.h:151
AliasTarget & WithDNSName(const Aws::String &value)
Definition: AliasTarget.h:423
#define AWS_ROUTE53_API
void SetHostedZoneId(const Aws::String &value)
Definition: AliasTarget.h:103
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDNSName(const char *value)
Definition: AliasTarget.h:383
const Aws::String & GetHostedZoneId() const
Definition: AliasTarget.h:79
void SetHostedZoneId(Aws::String &&value)
Definition: AliasTarget.h:127
AliasTarget & WithDNSName(Aws::String &&value)
Definition: AliasTarget.h:463
void SetDNSName(Aws::String &&value)
Definition: AliasTarget.h:343
JSON (JavaScript Object Notation).