This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-route53/include/aws/route53/model/CreateTrafficPolicyInstanceRequest.h

265 lines
11 KiB
C
Raw Normal View History

/**
* 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/Route53Request.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Route53
{
namespace Model
{
/**
* <p>A complex type that contains information about the resource record sets that
* you want to create based on a specified traffic policy.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateTrafficPolicyInstanceRequest">AWS
* API Reference</a></p>
*/
class AWS_ROUTE53_API CreateTrafficPolicyInstanceRequest : public Route53Request
{
public:
CreateTrafficPolicyInstanceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateTrafficPolicyInstance"; }
Aws::String SerializePayload() const override;
/**
* <p>The ID of the hosted zone that you want Amazon Route 53 to create resource
* record sets in by using the configuration in a traffic policy.</p>
*/
inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; }
/**
* <p>The ID of the hosted zone that you want Amazon Route 53 to create resource
* record sets in by using the configuration in a traffic policy.</p>
*/
inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; }
/**
* <p>The ID of the hosted zone that you want Amazon Route 53 to create resource
* record sets in by using the configuration in a traffic policy.</p>
*/
inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
/**
* <p>The ID of the hosted zone that you want Amazon Route 53 to create resource
* record sets in by using the configuration in a traffic policy.</p>
*/
inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); }
/**
* <p>The ID of the hosted zone that you want Amazon Route 53 to create resource
* record sets in by using the configuration in a traffic policy.</p>
*/
inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); }
/**
* <p>The ID of the hosted zone that you want Amazon Route 53 to create resource
* record sets in by using the configuration in a traffic policy.</p>
*/
inline CreateTrafficPolicyInstanceRequest& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;}
/**
* <p>The ID of the hosted zone that you want Amazon Route 53 to create resource
* record sets in by using the configuration in a traffic policy.</p>
*/
inline CreateTrafficPolicyInstanceRequest& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;}
/**
* <p>The ID of the hosted zone that you want Amazon Route 53 to create resource
* record sets in by using the configuration in a traffic policy.</p>
*/
inline CreateTrafficPolicyInstanceRequest& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;}
/**
* <p>The domain name (such as example.com) or subdomain name (such as
* www.example.com) for which Amazon Route 53 responds to DNS queries by using the
* resource record sets that Route 53 creates for this traffic policy instance.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The domain name (such as example.com) or subdomain name (such as
* www.example.com) for which Amazon Route 53 responds to DNS queries by using the
* resource record sets that Route 53 creates for this traffic policy instance.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The domain name (such as example.com) or subdomain name (such as
* www.example.com) for which Amazon Route 53 responds to DNS queries by using the
* resource record sets that Route 53 creates for this traffic policy instance.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The domain name (such as example.com) or subdomain name (such as
* www.example.com) for which Amazon Route 53 responds to DNS queries by using the
* resource record sets that Route 53 creates for this traffic policy instance.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The domain name (such as example.com) or subdomain name (such as
* www.example.com) for which Amazon Route 53 responds to DNS queries by using the
* resource record sets that Route 53 creates for this traffic policy instance.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The domain name (such as example.com) or subdomain name (such as
* www.example.com) for which Amazon Route 53 responds to DNS queries by using the
* resource record sets that Route 53 creates for this traffic policy instance.</p>
*/
inline CreateTrafficPolicyInstanceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The domain name (such as example.com) or subdomain name (such as
* www.example.com) for which Amazon Route 53 responds to DNS queries by using the
* resource record sets that Route 53 creates for this traffic policy instance.</p>
*/
inline CreateTrafficPolicyInstanceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The domain name (such as example.com) or subdomain name (such as
* www.example.com) for which Amazon Route 53 responds to DNS queries by using the
* resource record sets that Route 53 creates for this traffic policy instance.</p>
*/
inline CreateTrafficPolicyInstanceRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>(Optional) The TTL that you want Amazon Route 53 to assign to all of the
* resource record sets that it creates in the specified hosted zone.</p>
*/
inline long long GetTTL() const{ return m_tTL; }
/**
* <p>(Optional) The TTL that you want Amazon Route 53 to assign to all of the
* resource record sets that it creates in the specified hosted zone.</p>
*/
inline bool TTLHasBeenSet() const { return m_tTLHasBeenSet; }
/**
* <p>(Optional) The TTL that you want Amazon Route 53 to assign to all of the
* resource record sets that it creates in the specified hosted zone.</p>
*/
inline void SetTTL(long long value) { m_tTLHasBeenSet = true; m_tTL = value; }
/**
* <p>(Optional) The TTL that you want Amazon Route 53 to assign to all of the
* resource record sets that it creates in the specified hosted zone.</p>
*/
inline CreateTrafficPolicyInstanceRequest& WithTTL(long long value) { SetTTL(value); return *this;}
/**
* <p>The ID of the traffic policy that you want to use to create resource record
* sets in the specified hosted zone.</p>
*/
inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; }
/**
* <p>The ID of the traffic policy that you want to use to create resource record
* sets in the specified hosted zone.</p>
*/
inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; }
/**
* <p>The ID of the traffic policy that you want to use to create resource record
* sets in the specified hosted zone.</p>
*/
inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; }
/**
* <p>The ID of the traffic policy that you want to use to create resource record
* sets in the specified hosted zone.</p>
*/
inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); }
/**
* <p>The ID of the traffic policy that you want to use to create resource record
* sets in the specified hosted zone.</p>
*/
inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); }
/**
* <p>The ID of the traffic policy that you want to use to create resource record
* sets in the specified hosted zone.</p>
*/
inline CreateTrafficPolicyInstanceRequest& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;}
/**
* <p>The ID of the traffic policy that you want to use to create resource record
* sets in the specified hosted zone.</p>
*/
inline CreateTrafficPolicyInstanceRequest& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;}
/**
* <p>The ID of the traffic policy that you want to use to create resource record
* sets in the specified hosted zone.</p>
*/
inline CreateTrafficPolicyInstanceRequest& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;}
/**
* <p>The version of the traffic policy that you want to use to create resource
* record sets in the specified hosted zone.</p>
*/
inline int GetTrafficPolicyVersion() const{ return m_trafficPolicyVersion; }
/**
* <p>The version of the traffic policy that you want to use to create resource
* record sets in the specified hosted zone.</p>
*/
inline bool TrafficPolicyVersionHasBeenSet() const { return m_trafficPolicyVersionHasBeenSet; }
/**
* <p>The version of the traffic policy that you want to use to create resource
* record sets in the specified hosted zone.</p>
*/
inline void SetTrafficPolicyVersion(int value) { m_trafficPolicyVersionHasBeenSet = true; m_trafficPolicyVersion = value; }
/**
* <p>The version of the traffic policy that you want to use to create resource
* record sets in the specified hosted zone.</p>
*/
inline CreateTrafficPolicyInstanceRequest& WithTrafficPolicyVersion(int value) { SetTrafficPolicyVersion(value); return *this;}
private:
Aws::String m_hostedZoneId;
bool m_hostedZoneIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
long long m_tTL;
bool m_tTLHasBeenSet;
Aws::String m_trafficPolicyId;
bool m_trafficPolicyIdHasBeenSet;
int m_trafficPolicyVersion;
bool m_trafficPolicyVersionHasBeenSet;
};
} // namespace Model
} // namespace Route53
} // namespace Aws