AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceRecordSet.h
1
6#pragma once
7#include <aws/route53/Route53_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53/model/RRType.h>
10#include <aws/route53/model/ResourceRecordSetRegion.h>
11#include <aws/route53/model/GeoLocation.h>
12#include <aws/route53/model/ResourceRecordSetFailover.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/route53/model/AliasTarget.h>
15#include <aws/route53/model/CidrRoutingConfig.h>
16#include <aws/route53/model/GeoProximityLocation.h>
17#include <aws/route53/model/ResourceRecord.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Xml
25{
26 class XmlNode;
27} // namespace Xml
28} // namespace Utils
29namespace Route53
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_ROUTE53_API ResourceRecordSet() = default;
44 AWS_ROUTE53_API ResourceRecordSet(const Aws::Utils::Xml::XmlNode& xmlNode);
45 AWS_ROUTE53_API ResourceRecordSet& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
48
49
51
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template<typename NameT = Aws::String>
80 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
81 template<typename NameT = Aws::String>
82 ResourceRecordSet& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
84
86
136 inline RRType GetType() const { return m_type; }
137 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
138 inline void SetType(RRType value) { m_typeHasBeenSet = true; m_type = value; }
139 inline ResourceRecordSet& WithType(RRType value) { SetType(value); return *this;}
141
143
154 inline const Aws::String& GetSetIdentifier() const { return m_setIdentifier; }
155 inline bool SetIdentifierHasBeenSet() const { return m_setIdentifierHasBeenSet; }
156 template<typename SetIdentifierT = Aws::String>
157 void SetSetIdentifier(SetIdentifierT&& value) { m_setIdentifierHasBeenSet = true; m_setIdentifier = std::forward<SetIdentifierT>(value); }
158 template<typename SetIdentifierT = Aws::String>
159 ResourceRecordSet& WithSetIdentifier(SetIdentifierT&& value) { SetSetIdentifier(std::forward<SetIdentifierT>(value)); return *this;}
161
163
191 inline long long GetWeight() const { return m_weight; }
192 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
193 inline void SetWeight(long long value) { m_weightHasBeenSet = true; m_weight = value; }
194 inline ResourceRecordSet& WithWeight(long long value) { SetWeight(value); return *this;}
196
198
218 inline ResourceRecordSetRegion GetRegion() const { return m_region; }
219 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
220 inline void SetRegion(ResourceRecordSetRegion value) { m_regionHasBeenSet = true; m_region = value; }
221 inline ResourceRecordSet& WithRegion(ResourceRecordSetRegion value) { SetRegion(value); return *this;}
223
225
256 inline const GeoLocation& GetGeoLocation() const { return m_geoLocation; }
257 inline bool GeoLocationHasBeenSet() const { return m_geoLocationHasBeenSet; }
258 template<typename GeoLocationT = GeoLocation>
259 void SetGeoLocation(GeoLocationT&& value) { m_geoLocationHasBeenSet = true; m_geoLocation = std::forward<GeoLocationT>(value); }
260 template<typename GeoLocationT = GeoLocation>
261 ResourceRecordSet& WithGeoLocation(GeoLocationT&& value) { SetGeoLocation(std::forward<GeoLocationT>(value)); return *this;}
263
265
299 inline ResourceRecordSetFailover GetFailover() const { return m_failover; }
300 inline bool FailoverHasBeenSet() const { return m_failoverHasBeenSet; }
301 inline void SetFailover(ResourceRecordSetFailover value) { m_failoverHasBeenSet = true; m_failover = value; }
304
306
326 inline bool GetMultiValueAnswer() const { return m_multiValueAnswer; }
327 inline bool MultiValueAnswerHasBeenSet() const { return m_multiValueAnswerHasBeenSet; }
328 inline void SetMultiValueAnswer(bool value) { m_multiValueAnswerHasBeenSet = true; m_multiValueAnswer = value; }
329 inline ResourceRecordSet& WithMultiValueAnswer(bool value) { SetMultiValueAnswer(value); return *this;}
331
333
350 inline long long GetTTL() const { return m_tTL; }
351 inline bool TTLHasBeenSet() const { return m_tTLHasBeenSet; }
352 inline void SetTTL(long long value) { m_tTLHasBeenSet = true; m_tTL = value; }
353 inline ResourceRecordSet& WithTTL(long long value) { SetTTL(value); return *this;}
355
357
362 inline const Aws::Vector<ResourceRecord>& GetResourceRecords() const { return m_resourceRecords; }
363 inline bool ResourceRecordsHasBeenSet() const { return m_resourceRecordsHasBeenSet; }
364 template<typename ResourceRecordsT = Aws::Vector<ResourceRecord>>
365 void SetResourceRecords(ResourceRecordsT&& value) { m_resourceRecordsHasBeenSet = true; m_resourceRecords = std::forward<ResourceRecordsT>(value); }
366 template<typename ResourceRecordsT = Aws::Vector<ResourceRecord>>
367 ResourceRecordSet& WithResourceRecords(ResourceRecordsT&& value) { SetResourceRecords(std::forward<ResourceRecordsT>(value)); return *this;}
368 template<typename ResourceRecordsT = ResourceRecord>
369 ResourceRecordSet& AddResourceRecords(ResourceRecordsT&& value) { m_resourceRecordsHasBeenSet = true; m_resourceRecords.emplace_back(std::forward<ResourceRecordsT>(value)); return *this; }
371
373
385 inline const AliasTarget& GetAliasTarget() const { return m_aliasTarget; }
386 inline bool AliasTargetHasBeenSet() const { return m_aliasTargetHasBeenSet; }
387 template<typename AliasTargetT = AliasTarget>
388 void SetAliasTarget(AliasTargetT&& value) { m_aliasTargetHasBeenSet = true; m_aliasTarget = std::forward<AliasTargetT>(value); }
389 template<typename AliasTargetT = AliasTarget>
390 ResourceRecordSet& WithAliasTarget(AliasTargetT&& value) { SetAliasTarget(std::forward<AliasTargetT>(value)); return *this;}
392
394
472 inline const Aws::String& GetHealthCheckId() const { return m_healthCheckId; }
473 inline bool HealthCheckIdHasBeenSet() const { return m_healthCheckIdHasBeenSet; }
474 template<typename HealthCheckIdT = Aws::String>
475 void SetHealthCheckId(HealthCheckIdT&& value) { m_healthCheckIdHasBeenSet = true; m_healthCheckId = std::forward<HealthCheckIdT>(value); }
476 template<typename HealthCheckIdT = Aws::String>
477 ResourceRecordSet& WithHealthCheckId(HealthCheckIdT&& value) { SetHealthCheckId(std::forward<HealthCheckIdT>(value)); return *this;}
479
481
492 inline const Aws::String& GetTrafficPolicyInstanceId() const { return m_trafficPolicyInstanceId; }
493 inline bool TrafficPolicyInstanceIdHasBeenSet() const { return m_trafficPolicyInstanceIdHasBeenSet; }
494 template<typename TrafficPolicyInstanceIdT = Aws::String>
495 void SetTrafficPolicyInstanceId(TrafficPolicyInstanceIdT&& value) { m_trafficPolicyInstanceIdHasBeenSet = true; m_trafficPolicyInstanceId = std::forward<TrafficPolicyInstanceIdT>(value); }
496 template<typename TrafficPolicyInstanceIdT = Aws::String>
497 ResourceRecordSet& WithTrafficPolicyInstanceId(TrafficPolicyInstanceIdT&& value) { SetTrafficPolicyInstanceId(std::forward<TrafficPolicyInstanceIdT>(value)); return *this;}
499
501
502 inline const CidrRoutingConfig& GetCidrRoutingConfig() const { return m_cidrRoutingConfig; }
503 inline bool CidrRoutingConfigHasBeenSet() const { return m_cidrRoutingConfigHasBeenSet; }
504 template<typename CidrRoutingConfigT = CidrRoutingConfig>
505 void SetCidrRoutingConfig(CidrRoutingConfigT&& value) { m_cidrRoutingConfigHasBeenSet = true; m_cidrRoutingConfig = std::forward<CidrRoutingConfigT>(value); }
506 template<typename CidrRoutingConfigT = CidrRoutingConfig>
507 ResourceRecordSet& WithCidrRoutingConfig(CidrRoutingConfigT&& value) { SetCidrRoutingConfig(std::forward<CidrRoutingConfigT>(value)); return *this;}
509
511
516 inline const GeoProximityLocation& GetGeoProximityLocation() const { return m_geoProximityLocation; }
517 inline bool GeoProximityLocationHasBeenSet() const { return m_geoProximityLocationHasBeenSet; }
518 template<typename GeoProximityLocationT = GeoProximityLocation>
519 void SetGeoProximityLocation(GeoProximityLocationT&& value) { m_geoProximityLocationHasBeenSet = true; m_geoProximityLocation = std::forward<GeoProximityLocationT>(value); }
520 template<typename GeoProximityLocationT = GeoProximityLocation>
521 ResourceRecordSet& WithGeoProximityLocation(GeoProximityLocationT&& value) { SetGeoProximityLocation(std::forward<GeoProximityLocationT>(value)); return *this;}
523 private:
524
525 Aws::String m_name;
526 bool m_nameHasBeenSet = false;
527
528 RRType m_type{RRType::NOT_SET};
529 bool m_typeHasBeenSet = false;
530
531 Aws::String m_setIdentifier;
532 bool m_setIdentifierHasBeenSet = false;
533
534 long long m_weight{0};
535 bool m_weightHasBeenSet = false;
536
538 bool m_regionHasBeenSet = false;
539
540 GeoLocation m_geoLocation;
541 bool m_geoLocationHasBeenSet = false;
542
544 bool m_failoverHasBeenSet = false;
545
546 bool m_multiValueAnswer{false};
547 bool m_multiValueAnswerHasBeenSet = false;
548
549 long long m_tTL{0};
550 bool m_tTLHasBeenSet = false;
551
552 Aws::Vector<ResourceRecord> m_resourceRecords;
553 bool m_resourceRecordsHasBeenSet = false;
554
555 AliasTarget m_aliasTarget;
556 bool m_aliasTargetHasBeenSet = false;
557
558 Aws::String m_healthCheckId;
559 bool m_healthCheckIdHasBeenSet = false;
560
561 Aws::String m_trafficPolicyInstanceId;
562 bool m_trafficPolicyInstanceIdHasBeenSet = false;
563
564 CidrRoutingConfig m_cidrRoutingConfig;
565 bool m_cidrRoutingConfigHasBeenSet = false;
566
567 GeoProximityLocation m_geoProximityLocation;
568 bool m_geoProximityLocationHasBeenSet = false;
569 };
570
571} // namespace Model
572} // namespace Route53
573} // namespace Aws
void SetAliasTarget(AliasTargetT &&value)
ResourceRecordSet & WithCidrRoutingConfig(CidrRoutingConfigT &&value)
void SetHealthCheckId(HealthCheckIdT &&value)
AWS_ROUTE53_API ResourceRecordSet(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceRecordSet & WithAliasTarget(AliasTargetT &&value)
ResourceRecordSet & WithGeoLocation(GeoLocationT &&value)
const Aws::String & GetHealthCheckId() const
ResourceRecordSet & WithSetIdentifier(SetIdentifierT &&value)
ResourceRecordSet & WithResourceRecords(ResourceRecordsT &&value)
void SetRegion(ResourceRecordSetRegion value)
void SetTrafficPolicyInstanceId(TrafficPolicyInstanceIdT &&value)
AWS_ROUTE53_API ResourceRecordSet & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetGeoLocation(GeoLocationT &&value)
const Aws::String & GetName() const
const AliasTarget & GetAliasTarget() const
ResourceRecordSet & WithTTL(long long value)
void SetSetIdentifier(SetIdentifierT &&value)
ResourceRecordSet & WithType(RRType value)
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ResourceRecordSet & WithMultiValueAnswer(bool value)
ResourceRecordSet & WithRegion(ResourceRecordSetRegion value)
const Aws::Vector< ResourceRecord > & GetResourceRecords() const
void SetFailover(ResourceRecordSetFailover value)
ResourceRecordSet & WithHealthCheckId(HealthCheckIdT &&value)
const Aws::String & GetSetIdentifier() const
void SetResourceRecords(ResourceRecordsT &&value)
const Aws::String & GetTrafficPolicyInstanceId() const
ResourceRecordSet & AddResourceRecords(ResourceRecordsT &&value)
ResourceRecordSet & WithFailover(ResourceRecordSetFailover value)
ResourceRecordSet & WithTrafficPolicyInstanceId(TrafficPolicyInstanceIdT &&value)
AWS_ROUTE53_API ResourceRecordSet()=default
void SetCidrRoutingConfig(CidrRoutingConfigT &&value)
ResourceRecordSet & WithGeoProximityLocation(GeoProximityLocationT &&value)
const GeoProximityLocation & GetGeoProximityLocation() const
ResourceRecordSetRegion GetRegion() const
ResourceRecordSet & WithWeight(long long value)
ResourceRecordSet & WithName(NameT &&value)
const CidrRoutingConfig & GetCidrRoutingConfig() const
const GeoLocation & GetGeoLocation() const
void SetGeoProximityLocation(GeoProximityLocationT &&value)
ResourceRecordSetFailover GetFailover() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector