187 lines
9.1 KiB
C++
187 lines
9.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/route53/Route53_EXPORTS.h>
|
|
#include <aws/route53/model/ChangeAction.h>
|
|
#include <aws/route53/model/ResourceRecordSet.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Xml
|
|
{
|
|
class XmlNode;
|
|
} // namespace Xml
|
|
} // namespace Utils
|
|
namespace Route53
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>The information for each resource record set that you want to
|
|
* change.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/Change">AWS API
|
|
* Reference</a></p>
|
|
*/
|
|
class AWS_ROUTE53_API Change
|
|
{
|
|
public:
|
|
Change();
|
|
Change(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
Change& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
|
|
void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
|
|
|
|
|
|
/**
|
|
* <p>The action to perform:</p> <ul> <li> <p> <code>CREATE</code>: Creates a
|
|
* resource record set that has the specified values.</p> </li> <li> <p>
|
|
* <code>DELETE</code>: Deletes a existing resource record set.</p>
|
|
* <p>To delete the resource record set that is associated with a traffic policy
|
|
* instance, use <a
|
|
* href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_DeleteTrafficPolicyInstance.html">DeleteTrafficPolicyInstance</a>.
|
|
* Amazon Route 53 will delete the resource record set automatically. If you delete
|
|
* the resource record set by using <code>ChangeResourceRecordSets</code>, Route 53
|
|
* doesn't automatically delete the traffic policy instance, and you'll continue to
|
|
* be charged for it even though it's no longer in use. </p> </li>
|
|
* <li> <p> <code>UPSERT</code>: If a resource record set doesn't already exist,
|
|
* Route 53 creates it. If a resource record set does exist, Route 53 updates it
|
|
* with the values in the request.</p> </li> </ul>
|
|
*/
|
|
inline const ChangeAction& GetAction() const{ return m_action; }
|
|
|
|
/**
|
|
* <p>The action to perform:</p> <ul> <li> <p> <code>CREATE</code>: Creates a
|
|
* resource record set that has the specified values.</p> </li> <li> <p>
|
|
* <code>DELETE</code>: Deletes a existing resource record set.</p>
|
|
* <p>To delete the resource record set that is associated with a traffic policy
|
|
* instance, use <a
|
|
* href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_DeleteTrafficPolicyInstance.html">DeleteTrafficPolicyInstance</a>.
|
|
* Amazon Route 53 will delete the resource record set automatically. If you delete
|
|
* the resource record set by using <code>ChangeResourceRecordSets</code>, Route 53
|
|
* doesn't automatically delete the traffic policy instance, and you'll continue to
|
|
* be charged for it even though it's no longer in use. </p> </li>
|
|
* <li> <p> <code>UPSERT</code>: If a resource record set doesn't already exist,
|
|
* Route 53 creates it. If a resource record set does exist, Route 53 updates it
|
|
* with the values in the request.</p> </li> </ul>
|
|
*/
|
|
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The action to perform:</p> <ul> <li> <p> <code>CREATE</code>: Creates a
|
|
* resource record set that has the specified values.</p> </li> <li> <p>
|
|
* <code>DELETE</code>: Deletes a existing resource record set.</p>
|
|
* <p>To delete the resource record set that is associated with a traffic policy
|
|
* instance, use <a
|
|
* href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_DeleteTrafficPolicyInstance.html">DeleteTrafficPolicyInstance</a>.
|
|
* Amazon Route 53 will delete the resource record set automatically. If you delete
|
|
* the resource record set by using <code>ChangeResourceRecordSets</code>, Route 53
|
|
* doesn't automatically delete the traffic policy instance, and you'll continue to
|
|
* be charged for it even though it's no longer in use. </p> </li>
|
|
* <li> <p> <code>UPSERT</code>: If a resource record set doesn't already exist,
|
|
* Route 53 creates it. If a resource record set does exist, Route 53 updates it
|
|
* with the values in the request.</p> </li> </ul>
|
|
*/
|
|
inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
|
|
|
|
/**
|
|
* <p>The action to perform:</p> <ul> <li> <p> <code>CREATE</code>: Creates a
|
|
* resource record set that has the specified values.</p> </li> <li> <p>
|
|
* <code>DELETE</code>: Deletes a existing resource record set.</p>
|
|
* <p>To delete the resource record set that is associated with a traffic policy
|
|
* instance, use <a
|
|
* href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_DeleteTrafficPolicyInstance.html">DeleteTrafficPolicyInstance</a>.
|
|
* Amazon Route 53 will delete the resource record set automatically. If you delete
|
|
* the resource record set by using <code>ChangeResourceRecordSets</code>, Route 53
|
|
* doesn't automatically delete the traffic policy instance, and you'll continue to
|
|
* be charged for it even though it's no longer in use. </p> </li>
|
|
* <li> <p> <code>UPSERT</code>: If a resource record set doesn't already exist,
|
|
* Route 53 creates it. If a resource record set does exist, Route 53 updates it
|
|
* with the values in the request.</p> </li> </ul>
|
|
*/
|
|
inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
|
|
|
|
/**
|
|
* <p>The action to perform:</p> <ul> <li> <p> <code>CREATE</code>: Creates a
|
|
* resource record set that has the specified values.</p> </li> <li> <p>
|
|
* <code>DELETE</code>: Deletes a existing resource record set.</p>
|
|
* <p>To delete the resource record set that is associated with a traffic policy
|
|
* instance, use <a
|
|
* href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_DeleteTrafficPolicyInstance.html">DeleteTrafficPolicyInstance</a>.
|
|
* Amazon Route 53 will delete the resource record set automatically. If you delete
|
|
* the resource record set by using <code>ChangeResourceRecordSets</code>, Route 53
|
|
* doesn't automatically delete the traffic policy instance, and you'll continue to
|
|
* be charged for it even though it's no longer in use. </p> </li>
|
|
* <li> <p> <code>UPSERT</code>: If a resource record set doesn't already exist,
|
|
* Route 53 creates it. If a resource record set does exist, Route 53 updates it
|
|
* with the values in the request.</p> </li> </ul>
|
|
*/
|
|
inline Change& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
|
|
|
|
/**
|
|
* <p>The action to perform:</p> <ul> <li> <p> <code>CREATE</code>: Creates a
|
|
* resource record set that has the specified values.</p> </li> <li> <p>
|
|
* <code>DELETE</code>: Deletes a existing resource record set.</p>
|
|
* <p>To delete the resource record set that is associated with a traffic policy
|
|
* instance, use <a
|
|
* href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_DeleteTrafficPolicyInstance.html">DeleteTrafficPolicyInstance</a>.
|
|
* Amazon Route 53 will delete the resource record set automatically. If you delete
|
|
* the resource record set by using <code>ChangeResourceRecordSets</code>, Route 53
|
|
* doesn't automatically delete the traffic policy instance, and you'll continue to
|
|
* be charged for it even though it's no longer in use. </p> </li>
|
|
* <li> <p> <code>UPSERT</code>: If a resource record set doesn't already exist,
|
|
* Route 53 creates it. If a resource record set does exist, Route 53 updates it
|
|
* with the values in the request.</p> </li> </ul>
|
|
*/
|
|
inline Change& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Information about the resource record set to create, delete, or update.</p>
|
|
*/
|
|
inline const ResourceRecordSet& GetResourceRecordSet() const{ return m_resourceRecordSet; }
|
|
|
|
/**
|
|
* <p>Information about the resource record set to create, delete, or update.</p>
|
|
*/
|
|
inline bool ResourceRecordSetHasBeenSet() const { return m_resourceRecordSetHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Information about the resource record set to create, delete, or update.</p>
|
|
*/
|
|
inline void SetResourceRecordSet(const ResourceRecordSet& value) { m_resourceRecordSetHasBeenSet = true; m_resourceRecordSet = value; }
|
|
|
|
/**
|
|
* <p>Information about the resource record set to create, delete, or update.</p>
|
|
*/
|
|
inline void SetResourceRecordSet(ResourceRecordSet&& value) { m_resourceRecordSetHasBeenSet = true; m_resourceRecordSet = std::move(value); }
|
|
|
|
/**
|
|
* <p>Information about the resource record set to create, delete, or update.</p>
|
|
*/
|
|
inline Change& WithResourceRecordSet(const ResourceRecordSet& value) { SetResourceRecordSet(value); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the resource record set to create, delete, or update.</p>
|
|
*/
|
|
inline Change& WithResourceRecordSet(ResourceRecordSet&& value) { SetResourceRecordSet(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
ChangeAction m_action;
|
|
bool m_actionHasBeenSet;
|
|
|
|
ResourceRecordSet m_resourceRecordSet;
|
|
bool m_resourceRecordSetHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Route53
|
|
} // namespace Aws
|