com.amazonaws.services.route53.model.ListTrafficPolicyVersionsRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-route53 Show documentation
/*
* Copyright 2019-2024 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.
*/
package com.amazonaws.services.route53.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* A complex type that contains the information about the request to list your traffic policies.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ListTrafficPolicyVersionsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* Specify the value of Id
of the traffic policy for which you want to list all versions.
*
*/
private String id;
/**
*
* For your first request to ListTrafficPolicyVersions
, don't include the
* TrafficPolicyVersionMarker
parameter.
*
*
* If you have more traffic policy versions than the value of MaxItems
,
* ListTrafficPolicyVersions
returns only the first group of MaxItems
versions. To get
* more traffic policy versions, submit another ListTrafficPolicyVersions
request. For the value of
* TrafficPolicyVersionMarker
, specify the value of TrafficPolicyVersionMarker
in the
* previous response.
*
*/
private String trafficPolicyVersionMarker;
/**
*
* The maximum number of traffic policy versions that you want Amazon Route 53 to include in the response body for
* this request. If the specified traffic policy has more than MaxItems
versions, the value of
* IsTruncated
in the response is true
, and the value of the
* TrafficPolicyVersionMarker
element is the ID of the first version that Route 53 will return if you
* submit another request.
*
*/
private String maxItems;
/**
*
* Specify the value of Id
of the traffic policy for which you want to list all versions.
*
*
* @param id
* Specify the value of Id
of the traffic policy for which you want to list all versions.
*/
public void setId(String id) {
this.id = id;
}
/**
*
* Specify the value of Id
of the traffic policy for which you want to list all versions.
*
*
* @return Specify the value of Id
of the traffic policy for which you want to list all versions.
*/
public String getId() {
return this.id;
}
/**
*
* Specify the value of Id
of the traffic policy for which you want to list all versions.
*
*
* @param id
* Specify the value of Id
of the traffic policy for which you want to list all versions.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListTrafficPolicyVersionsRequest withId(String id) {
setId(id);
return this;
}
/**
*
* For your first request to ListTrafficPolicyVersions
, don't include the
* TrafficPolicyVersionMarker
parameter.
*
*
* If you have more traffic policy versions than the value of MaxItems
,
* ListTrafficPolicyVersions
returns only the first group of MaxItems
versions. To get
* more traffic policy versions, submit another ListTrafficPolicyVersions
request. For the value of
* TrafficPolicyVersionMarker
, specify the value of TrafficPolicyVersionMarker
in the
* previous response.
*
*
* @param trafficPolicyVersionMarker
* For your first request to ListTrafficPolicyVersions
, don't include the
* TrafficPolicyVersionMarker
parameter.
*
* If you have more traffic policy versions than the value of MaxItems
,
* ListTrafficPolicyVersions
returns only the first group of MaxItems
versions. To
* get more traffic policy versions, submit another ListTrafficPolicyVersions
request. For the
* value of TrafficPolicyVersionMarker
, specify the value of
* TrafficPolicyVersionMarker
in the previous response.
*/
public void setTrafficPolicyVersionMarker(String trafficPolicyVersionMarker) {
this.trafficPolicyVersionMarker = trafficPolicyVersionMarker;
}
/**
*
* For your first request to ListTrafficPolicyVersions
, don't include the
* TrafficPolicyVersionMarker
parameter.
*
*
* If you have more traffic policy versions than the value of MaxItems
,
* ListTrafficPolicyVersions
returns only the first group of MaxItems
versions. To get
* more traffic policy versions, submit another ListTrafficPolicyVersions
request. For the value of
* TrafficPolicyVersionMarker
, specify the value of TrafficPolicyVersionMarker
in the
* previous response.
*
*
* @return For your first request to ListTrafficPolicyVersions
, don't include the
* TrafficPolicyVersionMarker
parameter.
*
* If you have more traffic policy versions than the value of MaxItems
,
* ListTrafficPolicyVersions
returns only the first group of MaxItems
versions. To
* get more traffic policy versions, submit another ListTrafficPolicyVersions
request. For the
* value of TrafficPolicyVersionMarker
, specify the value of
* TrafficPolicyVersionMarker
in the previous response.
*/
public String getTrafficPolicyVersionMarker() {
return this.trafficPolicyVersionMarker;
}
/**
*
* For your first request to ListTrafficPolicyVersions
, don't include the
* TrafficPolicyVersionMarker
parameter.
*
*
* If you have more traffic policy versions than the value of MaxItems
,
* ListTrafficPolicyVersions
returns only the first group of MaxItems
versions. To get
* more traffic policy versions, submit another ListTrafficPolicyVersions
request. For the value of
* TrafficPolicyVersionMarker
, specify the value of TrafficPolicyVersionMarker
in the
* previous response.
*
*
* @param trafficPolicyVersionMarker
* For your first request to ListTrafficPolicyVersions
, don't include the
* TrafficPolicyVersionMarker
parameter.
*
* If you have more traffic policy versions than the value of MaxItems
,
* ListTrafficPolicyVersions
returns only the first group of MaxItems
versions. To
* get more traffic policy versions, submit another ListTrafficPolicyVersions
request. For the
* value of TrafficPolicyVersionMarker
, specify the value of
* TrafficPolicyVersionMarker
in the previous response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListTrafficPolicyVersionsRequest withTrafficPolicyVersionMarker(String trafficPolicyVersionMarker) {
setTrafficPolicyVersionMarker(trafficPolicyVersionMarker);
return this;
}
/**
*
* The maximum number of traffic policy versions that you want Amazon Route 53 to include in the response body for
* this request. If the specified traffic policy has more than MaxItems
versions, the value of
* IsTruncated
in the response is true
, and the value of the
* TrafficPolicyVersionMarker
element is the ID of the first version that Route 53 will return if you
* submit another request.
*
*
* @param maxItems
* The maximum number of traffic policy versions that you want Amazon Route 53 to include in the response
* body for this request. If the specified traffic policy has more than MaxItems
versions, the
* value of IsTruncated
in the response is true
, and the value of the
* TrafficPolicyVersionMarker
element is the ID of the first version that Route 53 will return
* if you submit another request.
*/
public void setMaxItems(String maxItems) {
this.maxItems = maxItems;
}
/**
*
* The maximum number of traffic policy versions that you want Amazon Route 53 to include in the response body for
* this request. If the specified traffic policy has more than MaxItems
versions, the value of
* IsTruncated
in the response is true
, and the value of the
* TrafficPolicyVersionMarker
element is the ID of the first version that Route 53 will return if you
* submit another request.
*
*
* @return The maximum number of traffic policy versions that you want Amazon Route 53 to include in the response
* body for this request. If the specified traffic policy has more than MaxItems
versions, the
* value of IsTruncated
in the response is true
, and the value of the
* TrafficPolicyVersionMarker
element is the ID of the first version that Route 53 will return
* if you submit another request.
*/
public String getMaxItems() {
return this.maxItems;
}
/**
*
* The maximum number of traffic policy versions that you want Amazon Route 53 to include in the response body for
* this request. If the specified traffic policy has more than MaxItems
versions, the value of
* IsTruncated
in the response is true
, and the value of the
* TrafficPolicyVersionMarker
element is the ID of the first version that Route 53 will return if you
* submit another request.
*
*
* @param maxItems
* The maximum number of traffic policy versions that you want Amazon Route 53 to include in the response
* body for this request. If the specified traffic policy has more than MaxItems
versions, the
* value of IsTruncated
in the response is true
, and the value of the
* TrafficPolicyVersionMarker
element is the ID of the first version that Route 53 will return
* if you submit another request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListTrafficPolicyVersionsRequest withMaxItems(String maxItems) {
setMaxItems(maxItems);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getId() != null)
sb.append("Id: ").append(getId()).append(",");
if (getTrafficPolicyVersionMarker() != null)
sb.append("TrafficPolicyVersionMarker: ").append(getTrafficPolicyVersionMarker()).append(",");
if (getMaxItems() != null)
sb.append("MaxItems: ").append(getMaxItems());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListTrafficPolicyVersionsRequest == false)
return false;
ListTrafficPolicyVersionsRequest other = (ListTrafficPolicyVersionsRequest) obj;
if (other.getId() == null ^ this.getId() == null)
return false;
if (other.getId() != null && other.getId().equals(this.getId()) == false)
return false;
if (other.getTrafficPolicyVersionMarker() == null ^ this.getTrafficPolicyVersionMarker() == null)
return false;
if (other.getTrafficPolicyVersionMarker() != null && other.getTrafficPolicyVersionMarker().equals(this.getTrafficPolicyVersionMarker()) == false)
return false;
if (other.getMaxItems() == null ^ this.getMaxItems() == null)
return false;
if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode());
hashCode = prime * hashCode + ((getTrafficPolicyVersionMarker() == null) ? 0 : getTrafficPolicyVersionMarker().hashCode());
hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode());
return hashCode;
}
@Override
public ListTrafficPolicyVersionsRequest clone() {
return (ListTrafficPolicyVersionsRequest) super.clone();
}
}