/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the route53-2013-04-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Route53.Model
{
///
/// Container for the parameters to the ListTrafficPolicyInstancesByPolicy operation.
/// Gets information about the traffic policy instances that you created by using a specify
/// traffic policy version.
///
///
///
/// After you submit a CreateTrafficPolicyInstance
or an UpdateTrafficPolicyInstance
/// request, there's a brief delay while Amazon Route 53 creates the resource record sets
/// that are specified in the traffic policy definition. For more information, see the
/// State
response element.
///
///
///
/// Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic
/// policy instances, you can use the MaxItems
parameter to list them in
/// groups of up to 100.
///
///
public partial class ListTrafficPolicyInstancesByPolicyRequest : AmazonRoute53Request
{
private string _trafficPolicyId;
private int? _trafficPolicyVersion;
private string _hostedZoneIdMarker;
private string _trafficPolicyInstanceNameMarker;
private RRType _trafficPolicyInstanceTypeMarker;
private string _maxItems;
///
/// Gets and sets the property TrafficPolicyId.
///
/// The ID of the traffic policy for which you want to list traffic policy instances.
///
///
[AWSProperty(Required=true, Min=1, Max=36)]
public string TrafficPolicyId
{
get { return this._trafficPolicyId; }
set { this._trafficPolicyId = value; }
}
// Check to see if TrafficPolicyId property is set
internal bool IsSetTrafficPolicyId()
{
return this._trafficPolicyId != null;
}
///
/// Gets and sets the property TrafficPolicyVersion.
///
/// The version of the traffic policy for which you want to list traffic policy instances.
/// The version must be associated with the traffic policy that is specified by TrafficPolicyId
.
///
///
[AWSProperty(Required=true, Min=1, Max=1000)]
public int TrafficPolicyVersion
{
get { return this._trafficPolicyVersion.GetValueOrDefault(); }
set { this._trafficPolicyVersion = value; }
}
// Check to see if TrafficPolicyVersion property is set
internal bool IsSetTrafficPolicyVersion()
{
return this._trafficPolicyVersion.HasValue;
}
///
/// Gets and sets the property HostedZoneIdMarker.
///
/// If the value of IsTruncated
in the previous response was true
,
/// you have more traffic policy instances. To get more traffic policy instances, submit
/// another ListTrafficPolicyInstancesByPolicy
request.
///
///
///
/// For the value of hostedzoneid
, specify the value of HostedZoneIdMarker
/// from the previous response, which is the hosted zone ID of the first traffic policy
/// instance that Amazon Route 53 will return if you submit another request.
///
///
///
/// If the value of IsTruncated
in the previous response was false
,
/// there are no more traffic policy instances to get.
///
///
[AWSProperty(Max=32)]
public string HostedZoneIdMarker
{
get { return this._hostedZoneIdMarker; }
set { this._hostedZoneIdMarker = value; }
}
// Check to see if HostedZoneIdMarker property is set
internal bool IsSetHostedZoneIdMarker()
{
return this._hostedZoneIdMarker != null;
}
///
/// Gets and sets the property TrafficPolicyInstanceNameMarker.
///
/// If the value of IsTruncated
in the previous response was true
,
/// you have more traffic policy instances. To get more traffic policy instances, submit
/// another ListTrafficPolicyInstancesByPolicy
request.
///
///
///
/// For the value of trafficpolicyinstancename
, specify the value of TrafficPolicyInstanceNameMarker
/// from the previous response, which is the name of the first traffic policy instance
/// that Amazon Route 53 will return if you submit another request.
///
///
///
/// If the value of IsTruncated
in the previous response was false
,
/// there are no more traffic policy instances to get.
///
///
[AWSProperty(Max=1024)]
public string TrafficPolicyInstanceNameMarker
{
get { return this._trafficPolicyInstanceNameMarker; }
set { this._trafficPolicyInstanceNameMarker = value; }
}
// Check to see if TrafficPolicyInstanceNameMarker property is set
internal bool IsSetTrafficPolicyInstanceNameMarker()
{
return this._trafficPolicyInstanceNameMarker != null;
}
///
/// Gets and sets the property TrafficPolicyInstanceTypeMarker.
///
/// If the value of IsTruncated
in the previous response was true
,
/// you have more traffic policy instances. To get more traffic policy instances, submit
/// another ListTrafficPolicyInstancesByPolicy
request.
///
///
///
/// For the value of trafficpolicyinstancetype
, specify the value of TrafficPolicyInstanceTypeMarker
/// from the previous response, which is the name of the first traffic policy instance
/// that Amazon Route 53 will return if you submit another request.
///
///
///
/// If the value of IsTruncated
in the previous response was false
,
/// there are no more traffic policy instances to get.
///
///
public RRType TrafficPolicyInstanceTypeMarker
{
get { return this._trafficPolicyInstanceTypeMarker; }
set { this._trafficPolicyInstanceTypeMarker = value; }
}
// Check to see if TrafficPolicyInstanceTypeMarker property is set
internal bool IsSetTrafficPolicyInstanceTypeMarker()
{
return this._trafficPolicyInstanceTypeMarker != null;
}
///
/// Gets and sets the property MaxItems.
///
/// The maximum number of traffic policy instances to be included in the response body
/// for this request. If you have more than MaxItems
traffic policy instances,
/// the value of the IsTruncated
element in the response is true
,
/// and the values of HostedZoneIdMarker
, TrafficPolicyInstanceNameMarker
,
/// and TrafficPolicyInstanceTypeMarker
represent the first traffic policy
/// instance that Amazon Route 53 will return if you submit another request.
///
///
public string MaxItems
{
get { return this._maxItems; }
set { this._maxItems = value; }
}
// Check to see if MaxItems property is set
internal bool IsSetMaxItems()
{
return this._maxItems != null;
}
}
}