com.amazonaws.services.arczonalshift.model.ListZonalShiftsRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-arczonalshift 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.arczonalshift.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ListZonalShiftsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The number of objects that you want to return with this call.
*
*/
private Integer maxResults;
/**
*
* Specifies that you want to receive the next page of results. Valid only if you received a NextToken
* response in the previous request. If you did, it indicates that more output is available. Set this parameter to
* the value provided by the previous call's NextToken
response to request the next page of results.
*
*/
private String nextToken;
/**
*
* The identifier for the resource that you want to list zonal shifts for. The identifier is the Amazon Resource
* Name (ARN) for the resource.
*
*/
private String resourceIdentifier;
/**
*
* A status for a zonal shift.
*
*
* The Status
for a zonal shift can have one of the following values:
*
*
* -
*
* ACTIVE: The zonal shift has been started and active.
*
*
* -
*
* EXPIRED: The zonal shift has expired (the expiry time was exceeded).
*
*
* -
*
* CANCELED: The zonal shift was canceled.
*
*
*
*/
private String status;
/**
*
* The number of objects that you want to return with this call.
*
*
* @param maxResults
* The number of objects that you want to return with this call.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* The number of objects that you want to return with this call.
*
*
* @return The number of objects that you want to return with this call.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* The number of objects that you want to return with this call.
*
*
* @param maxResults
* The number of objects that you want to return with this call.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListZonalShiftsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* Specifies that you want to receive the next page of results. Valid only if you received a NextToken
* response in the previous request. If you did, it indicates that more output is available. Set this parameter to
* the value provided by the previous call's NextToken
response to request the next page of results.
*
*
* @param nextToken
* Specifies that you want to receive the next page of results. Valid only if you received a
* NextToken
response in the previous request. If you did, it indicates that more output is
* available. Set this parameter to the value provided by the previous call's NextToken
response
* to request the next page of results.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* Specifies that you want to receive the next page of results. Valid only if you received a NextToken
* response in the previous request. If you did, it indicates that more output is available. Set this parameter to
* the value provided by the previous call's NextToken
response to request the next page of results.
*
*
* @return Specifies that you want to receive the next page of results. Valid only if you received a
* NextToken
response in the previous request. If you did, it indicates that more output is
* available. Set this parameter to the value provided by the previous call's NextToken
* response to request the next page of results.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* Specifies that you want to receive the next page of results. Valid only if you received a NextToken
* response in the previous request. If you did, it indicates that more output is available. Set this parameter to
* the value provided by the previous call's NextToken
response to request the next page of results.
*
*
* @param nextToken
* Specifies that you want to receive the next page of results. Valid only if you received a
* NextToken
response in the previous request. If you did, it indicates that more output is
* available. Set this parameter to the value provided by the previous call's NextToken
response
* to request the next page of results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListZonalShiftsRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* The identifier for the resource that you want to list zonal shifts for. The identifier is the Amazon Resource
* Name (ARN) for the resource.
*
*
* @param resourceIdentifier
* The identifier for the resource that you want to list zonal shifts for. The identifier is the Amazon
* Resource Name (ARN) for the resource.
*/
public void setResourceIdentifier(String resourceIdentifier) {
this.resourceIdentifier = resourceIdentifier;
}
/**
*
* The identifier for the resource that you want to list zonal shifts for. The identifier is the Amazon Resource
* Name (ARN) for the resource.
*
*
* @return The identifier for the resource that you want to list zonal shifts for. The identifier is the Amazon
* Resource Name (ARN) for the resource.
*/
public String getResourceIdentifier() {
return this.resourceIdentifier;
}
/**
*
* The identifier for the resource that you want to list zonal shifts for. The identifier is the Amazon Resource
* Name (ARN) for the resource.
*
*
* @param resourceIdentifier
* The identifier for the resource that you want to list zonal shifts for. The identifier is the Amazon
* Resource Name (ARN) for the resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListZonalShiftsRequest withResourceIdentifier(String resourceIdentifier) {
setResourceIdentifier(resourceIdentifier);
return this;
}
/**
*
* A status for a zonal shift.
*
*
* The Status
for a zonal shift can have one of the following values:
*
*
* -
*
* ACTIVE: The zonal shift has been started and active.
*
*
* -
*
* EXPIRED: The zonal shift has expired (the expiry time was exceeded).
*
*
* -
*
* CANCELED: The zonal shift was canceled.
*
*
*
*
* @param status
* A status for a zonal shift.
*
* The Status
for a zonal shift can have one of the following values:
*
*
* -
*
* ACTIVE: The zonal shift has been started and active.
*
*
* -
*
* EXPIRED: The zonal shift has expired (the expiry time was exceeded).
*
*
* -
*
* CANCELED: The zonal shift was canceled.
*
*
* @see ZonalShiftStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* A status for a zonal shift.
*
*
* The Status
for a zonal shift can have one of the following values:
*
*
* -
*
* ACTIVE: The zonal shift has been started and active.
*
*
* -
*
* EXPIRED: The zonal shift has expired (the expiry time was exceeded).
*
*
* -
*
* CANCELED: The zonal shift was canceled.
*
*
*
*
* @return A status for a zonal shift.
*
* The Status
for a zonal shift can have one of the following values:
*
*
* -
*
* ACTIVE: The zonal shift has been started and active.
*
*
* -
*
* EXPIRED: The zonal shift has expired (the expiry time was exceeded).
*
*
* -
*
* CANCELED: The zonal shift was canceled.
*
*
* @see ZonalShiftStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* A status for a zonal shift.
*
*
* The Status
for a zonal shift can have one of the following values:
*
*
* -
*
* ACTIVE: The zonal shift has been started and active.
*
*
* -
*
* EXPIRED: The zonal shift has expired (the expiry time was exceeded).
*
*
* -
*
* CANCELED: The zonal shift was canceled.
*
*
*
*
* @param status
* A status for a zonal shift.
*
* The Status
for a zonal shift can have one of the following values:
*
*
* -
*
* ACTIVE: The zonal shift has been started and active.
*
*
* -
*
* EXPIRED: The zonal shift has expired (the expiry time was exceeded).
*
*
* -
*
* CANCELED: The zonal shift was canceled.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see ZonalShiftStatus
*/
public ListZonalShiftsRequest withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* A status for a zonal shift.
*
*
* The Status
for a zonal shift can have one of the following values:
*
*
* -
*
* ACTIVE: The zonal shift has been started and active.
*
*
* -
*
* EXPIRED: The zonal shift has expired (the expiry time was exceeded).
*
*
* -
*
* CANCELED: The zonal shift was canceled.
*
*
*
*
* @param status
* A status for a zonal shift.
*
* The Status
for a zonal shift can have one of the following values:
*
*
* -
*
* ACTIVE: The zonal shift has been started and active.
*
*
* -
*
* EXPIRED: The zonal shift has expired (the expiry time was exceeded).
*
*
* -
*
* CANCELED: The zonal shift was canceled.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see ZonalShiftStatus
*/
public ListZonalShiftsRequest withStatus(ZonalShiftStatus status) {
this.status = status.toString();
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 (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getResourceIdentifier() != null)
sb.append("ResourceIdentifier: ").append(getResourceIdentifier()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListZonalShiftsRequest == false)
return false;
ListZonalShiftsRequest other = (ListZonalShiftsRequest) obj;
if (other.getMaxResults() == null ^ this.getMaxResults() == null)
return false;
if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false)
return false;
if (other.getNextToken() == null ^ this.getNextToken() == null)
return false;
if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false)
return false;
if (other.getResourceIdentifier() == null ^ this.getResourceIdentifier() == null)
return false;
if (other.getResourceIdentifier() != null && other.getResourceIdentifier().equals(this.getResourceIdentifier()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getResourceIdentifier() == null) ? 0 : getResourceIdentifier().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
return hashCode;
}
@Override
public ListZonalShiftsRequest clone() {
return (ListZonalShiftsRequest) super.clone();
}
}