AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
80 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
81 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
82 inline ResourceRecordSet& WithName(const Aws::String& value) { SetName(value); return *this;}
83 inline ResourceRecordSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
84 inline ResourceRecordSet& WithName(const char* value) { SetName(value); return *this;}
86
88
138 inline const RRType& GetType() const{ return m_type; }
139 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
140 inline void SetType(const RRType& value) { m_typeHasBeenSet = true; m_type = value; }
141 inline void SetType(RRType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
142 inline ResourceRecordSet& WithType(const RRType& value) { SetType(value); return *this;}
143 inline ResourceRecordSet& WithType(RRType&& value) { SetType(std::move(value)); return *this;}
145
147
158 inline const Aws::String& GetSetIdentifier() const{ return m_setIdentifier; }
159 inline bool SetIdentifierHasBeenSet() const { return m_setIdentifierHasBeenSet; }
160 inline void SetSetIdentifier(const Aws::String& value) { m_setIdentifierHasBeenSet = true; m_setIdentifier = value; }
161 inline void SetSetIdentifier(Aws::String&& value) { m_setIdentifierHasBeenSet = true; m_setIdentifier = std::move(value); }
162 inline void SetSetIdentifier(const char* value) { m_setIdentifierHasBeenSet = true; m_setIdentifier.assign(value); }
163 inline ResourceRecordSet& WithSetIdentifier(const Aws::String& value) { SetSetIdentifier(value); return *this;}
164 inline ResourceRecordSet& WithSetIdentifier(Aws::String&& value) { SetSetIdentifier(std::move(value)); return *this;}
165 inline ResourceRecordSet& WithSetIdentifier(const char* value) { SetSetIdentifier(value); return *this;}
167
169
197 inline long long GetWeight() const{ return m_weight; }
198 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
199 inline void SetWeight(long long value) { m_weightHasBeenSet = true; m_weight = value; }
200 inline ResourceRecordSet& WithWeight(long long value) { SetWeight(value); return *this;}
202
204
224 inline const ResourceRecordSetRegion& GetRegion() const{ return m_region; }
225 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
226 inline void SetRegion(const ResourceRecordSetRegion& value) { m_regionHasBeenSet = true; m_region = value; }
227 inline void SetRegion(ResourceRecordSetRegion&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
228 inline ResourceRecordSet& WithRegion(const ResourceRecordSetRegion& value) { SetRegion(value); return *this;}
229 inline ResourceRecordSet& WithRegion(ResourceRecordSetRegion&& value) { SetRegion(std::move(value)); return *this;}
231
233
264 inline const GeoLocation& GetGeoLocation() const{ return m_geoLocation; }
265 inline bool GeoLocationHasBeenSet() const { return m_geoLocationHasBeenSet; }
266 inline void SetGeoLocation(const GeoLocation& value) { m_geoLocationHasBeenSet = true; m_geoLocation = value; }
267 inline void SetGeoLocation(GeoLocation&& value) { m_geoLocationHasBeenSet = true; m_geoLocation = std::move(value); }
268 inline ResourceRecordSet& WithGeoLocation(const GeoLocation& value) { SetGeoLocation(value); return *this;}
269 inline ResourceRecordSet& WithGeoLocation(GeoLocation&& value) { SetGeoLocation(std::move(value)); return *this;}
271
273
307 inline const ResourceRecordSetFailover& GetFailover() const{ return m_failover; }
308 inline bool FailoverHasBeenSet() const { return m_failoverHasBeenSet; }
309 inline void SetFailover(const ResourceRecordSetFailover& value) { m_failoverHasBeenSet = true; m_failover = value; }
310 inline void SetFailover(ResourceRecordSetFailover&& value) { m_failoverHasBeenSet = true; m_failover = std::move(value); }
311 inline ResourceRecordSet& WithFailover(const ResourceRecordSetFailover& value) { SetFailover(value); return *this;}
312 inline ResourceRecordSet& WithFailover(ResourceRecordSetFailover&& value) { SetFailover(std::move(value)); return *this;}
314
316
336 inline bool GetMultiValueAnswer() const{ return m_multiValueAnswer; }
337 inline bool MultiValueAnswerHasBeenSet() const { return m_multiValueAnswerHasBeenSet; }
338 inline void SetMultiValueAnswer(bool value) { m_multiValueAnswerHasBeenSet = true; m_multiValueAnswer = value; }
339 inline ResourceRecordSet& WithMultiValueAnswer(bool value) { SetMultiValueAnswer(value); return *this;}
341
343
360 inline long long GetTTL() const{ return m_tTL; }
361 inline bool TTLHasBeenSet() const { return m_tTLHasBeenSet; }
362 inline void SetTTL(long long value) { m_tTLHasBeenSet = true; m_tTL = value; }
363 inline ResourceRecordSet& WithTTL(long long value) { SetTTL(value); return *this;}
365
367
372 inline const Aws::Vector<ResourceRecord>& GetResourceRecords() const{ return m_resourceRecords; }
373 inline bool ResourceRecordsHasBeenSet() const { return m_resourceRecordsHasBeenSet; }
374 inline void SetResourceRecords(const Aws::Vector<ResourceRecord>& value) { m_resourceRecordsHasBeenSet = true; m_resourceRecords = value; }
375 inline void SetResourceRecords(Aws::Vector<ResourceRecord>&& value) { m_resourceRecordsHasBeenSet = true; m_resourceRecords = std::move(value); }
377 inline ResourceRecordSet& WithResourceRecords(Aws::Vector<ResourceRecord>&& value) { SetResourceRecords(std::move(value)); return *this;}
378 inline ResourceRecordSet& AddResourceRecords(const ResourceRecord& value) { m_resourceRecordsHasBeenSet = true; m_resourceRecords.push_back(value); return *this; }
379 inline ResourceRecordSet& AddResourceRecords(ResourceRecord&& value) { m_resourceRecordsHasBeenSet = true; m_resourceRecords.push_back(std::move(value)); return *this; }
381
383
395 inline const AliasTarget& GetAliasTarget() const{ return m_aliasTarget; }
396 inline bool AliasTargetHasBeenSet() const { return m_aliasTargetHasBeenSet; }
397 inline void SetAliasTarget(const AliasTarget& value) { m_aliasTargetHasBeenSet = true; m_aliasTarget = value; }
398 inline void SetAliasTarget(AliasTarget&& value) { m_aliasTargetHasBeenSet = true; m_aliasTarget = std::move(value); }
399 inline ResourceRecordSet& WithAliasTarget(const AliasTarget& value) { SetAliasTarget(value); return *this;}
400 inline ResourceRecordSet& WithAliasTarget(AliasTarget&& value) { SetAliasTarget(std::move(value)); return *this;}
402
404
482 inline const Aws::String& GetHealthCheckId() const{ return m_healthCheckId; }
483 inline bool HealthCheckIdHasBeenSet() const { return m_healthCheckIdHasBeenSet; }
484 inline void SetHealthCheckId(const Aws::String& value) { m_healthCheckIdHasBeenSet = true; m_healthCheckId = value; }
485 inline void SetHealthCheckId(Aws::String&& value) { m_healthCheckIdHasBeenSet = true; m_healthCheckId = std::move(value); }
486 inline void SetHealthCheckId(const char* value) { m_healthCheckIdHasBeenSet = true; m_healthCheckId.assign(value); }
487 inline ResourceRecordSet& WithHealthCheckId(const Aws::String& value) { SetHealthCheckId(value); return *this;}
488 inline ResourceRecordSet& WithHealthCheckId(Aws::String&& value) { SetHealthCheckId(std::move(value)); return *this;}
489 inline ResourceRecordSet& WithHealthCheckId(const char* value) { SetHealthCheckId(value); return *this;}
491
493
504 inline const Aws::String& GetTrafficPolicyInstanceId() const{ return m_trafficPolicyInstanceId; }
505 inline bool TrafficPolicyInstanceIdHasBeenSet() const { return m_trafficPolicyInstanceIdHasBeenSet; }
506 inline void SetTrafficPolicyInstanceId(const Aws::String& value) { m_trafficPolicyInstanceIdHasBeenSet = true; m_trafficPolicyInstanceId = value; }
507 inline void SetTrafficPolicyInstanceId(Aws::String&& value) { m_trafficPolicyInstanceIdHasBeenSet = true; m_trafficPolicyInstanceId = std::move(value); }
508 inline void SetTrafficPolicyInstanceId(const char* value) { m_trafficPolicyInstanceIdHasBeenSet = true; m_trafficPolicyInstanceId.assign(value); }
510 inline ResourceRecordSet& WithTrafficPolicyInstanceId(Aws::String&& value) { SetTrafficPolicyInstanceId(std::move(value)); return *this;}
511 inline ResourceRecordSet& WithTrafficPolicyInstanceId(const char* value) { SetTrafficPolicyInstanceId(value); return *this;}
513
515
516 inline const CidrRoutingConfig& GetCidrRoutingConfig() const{ return m_cidrRoutingConfig; }
517 inline bool CidrRoutingConfigHasBeenSet() const { return m_cidrRoutingConfigHasBeenSet; }
518 inline void SetCidrRoutingConfig(const CidrRoutingConfig& value) { m_cidrRoutingConfigHasBeenSet = true; m_cidrRoutingConfig = value; }
519 inline void SetCidrRoutingConfig(CidrRoutingConfig&& value) { m_cidrRoutingConfigHasBeenSet = true; m_cidrRoutingConfig = std::move(value); }
521 inline ResourceRecordSet& WithCidrRoutingConfig(CidrRoutingConfig&& value) { SetCidrRoutingConfig(std::move(value)); return *this;}
523
525
530 inline const GeoProximityLocation& GetGeoProximityLocation() const{ return m_geoProximityLocation; }
531 inline bool GeoProximityLocationHasBeenSet() const { return m_geoProximityLocationHasBeenSet; }
532 inline void SetGeoProximityLocation(const GeoProximityLocation& value) { m_geoProximityLocationHasBeenSet = true; m_geoProximityLocation = value; }
533 inline void SetGeoProximityLocation(GeoProximityLocation&& value) { m_geoProximityLocationHasBeenSet = true; m_geoProximityLocation = std::move(value); }
537 private:
538
539 Aws::String m_name;
540 bool m_nameHasBeenSet = false;
541
542 RRType m_type;
543 bool m_typeHasBeenSet = false;
544
545 Aws::String m_setIdentifier;
546 bool m_setIdentifierHasBeenSet = false;
547
548 long long m_weight;
549 bool m_weightHasBeenSet = false;
550
552 bool m_regionHasBeenSet = false;
553
554 GeoLocation m_geoLocation;
555 bool m_geoLocationHasBeenSet = false;
556
557 ResourceRecordSetFailover m_failover;
558 bool m_failoverHasBeenSet = false;
559
560 bool m_multiValueAnswer;
561 bool m_multiValueAnswerHasBeenSet = false;
562
563 long long m_tTL;
564 bool m_tTLHasBeenSet = false;
565
566 Aws::Vector<ResourceRecord> m_resourceRecords;
567 bool m_resourceRecordsHasBeenSet = false;
568
569 AliasTarget m_aliasTarget;
570 bool m_aliasTargetHasBeenSet = false;
571
572 Aws::String m_healthCheckId;
573 bool m_healthCheckIdHasBeenSet = false;
574
575 Aws::String m_trafficPolicyInstanceId;
576 bool m_trafficPolicyInstanceIdHasBeenSet = false;
577
578 CidrRoutingConfig m_cidrRoutingConfig;
579 bool m_cidrRoutingConfigHasBeenSet = false;
580
581 GeoProximityLocation m_geoProximityLocation;
582 bool m_geoProximityLocationHasBeenSet = false;
583 };
584
585} // namespace Model
586} // namespace Route53
587} // namespace Aws
ResourceRecordSet & WithSetIdentifier(const Aws::String &value)
void SetTrafficPolicyInstanceId(const char *value)
const ResourceRecordSetRegion & GetRegion() const
AWS_ROUTE53_API ResourceRecordSet(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceRecordSet & WithRegion(ResourceRecordSetRegion &&value)
ResourceRecordSet & WithResourceRecords(const Aws::Vector< ResourceRecord > &value)
ResourceRecordSet & WithFailover(const ResourceRecordSetFailover &value)
const Aws::String & GetHealthCheckId() const
ResourceRecordSet & WithType(RRType &&value)
ResourceRecordSet & WithGeoLocation(const GeoLocation &value)
void SetGeoProximityLocation(const GeoProximityLocation &value)
ResourceRecordSet & WithName(const Aws::String &value)
void SetTrafficPolicyInstanceId(const Aws::String &value)
void SetHealthCheckId(const Aws::String &value)
AWS_ROUTE53_API ResourceRecordSet & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetName(const Aws::String &value)
ResourceRecordSet & AddResourceRecords(ResourceRecord &&value)
ResourceRecordSet & WithFailover(ResourceRecordSetFailover &&value)
const Aws::String & GetName() const
const AliasTarget & GetAliasTarget() const
ResourceRecordSet & WithCidrRoutingConfig(CidrRoutingConfig &&value)
ResourceRecordSet & WithSetIdentifier(const char *value)
void SetTrafficPolicyInstanceId(Aws::String &&value)
void SetCidrRoutingConfig(CidrRoutingConfig &&value)
ResourceRecordSet & WithTTL(long long value)
void SetSetIdentifier(const Aws::String &value)
ResourceRecordSet & WithHealthCheckId(const Aws::String &value)
void SetAliasTarget(const AliasTarget &value)
void SetCidrRoutingConfig(const CidrRoutingConfig &value)
void SetRegion(ResourceRecordSetRegion &&value)
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ResourceRecordSet & WithMultiValueAnswer(bool value)
void SetResourceRecords(Aws::Vector< ResourceRecord > &&value)
void SetHealthCheckId(Aws::String &&value)
const Aws::Vector< ResourceRecord > & GetResourceRecords() const
ResourceRecordSet & WithRegion(const ResourceRecordSetRegion &value)
void SetResourceRecords(const Aws::Vector< ResourceRecord > &value)
ResourceRecordSet & WithAliasTarget(const AliasTarget &value)
const Aws::String & GetSetIdentifier() const
ResourceRecordSet & WithGeoProximityLocation(const GeoProximityLocation &value)
ResourceRecordSet & WithName(const char *value)
void SetGeoLocation(const GeoLocation &value)
ResourceRecordSet & WithTrafficPolicyInstanceId(const char *value)
const Aws::String & GetTrafficPolicyInstanceId() const
ResourceRecordSet & WithAliasTarget(AliasTarget &&value)
void SetFailover(ResourceRecordSetFailover &&value)
const ResourceRecordSetFailover & GetFailover() const
ResourceRecordSet & WithName(Aws::String &&value)
void SetFailover(const ResourceRecordSetFailover &value)
ResourceRecordSet & WithGeoLocation(GeoLocation &&value)
ResourceRecordSet & WithTrafficPolicyInstanceId(const Aws::String &value)
void SetSetIdentifier(Aws::String &&value)
ResourceRecordSet & WithHealthCheckId(const char *value)
ResourceRecordSet & WithSetIdentifier(Aws::String &&value)
ResourceRecordSet & AddResourceRecords(const ResourceRecord &value)
void SetGeoProximityLocation(GeoProximityLocation &&value)
const GeoProximityLocation & GetGeoProximityLocation() const
ResourceRecordSet & WithWeight(long long value)
const CidrRoutingConfig & GetCidrRoutingConfig() const
ResourceRecordSet & WithGeoProximityLocation(GeoProximityLocation &&value)
ResourceRecordSet & WithTrafficPolicyInstanceId(Aws::String &&value)
const GeoLocation & GetGeoLocation() const
void SetRegion(const ResourceRecordSetRegion &value)
ResourceRecordSet & WithHealthCheckId(Aws::String &&value)
ResourceRecordSet & WithCidrRoutingConfig(const CidrRoutingConfig &value)
ResourceRecordSet & WithResourceRecords(Aws::Vector< ResourceRecord > &&value)
ResourceRecordSet & WithType(const RRType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector