com.amazonaws.services.resiliencehub.model.ListUnsupportedAppVersionResourcesRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-resiliencehub 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.resiliencehub.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 ListUnsupportedAppVersionResourcesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
* partition
:resiliencehub:region
:account
:app/app-id
. For more
* information about ARNs, see
* Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
*
*/
private String appArn;
/**
*
* The version of the application.
*
*/
private String appVersion;
/**
*
* Maximum number of results to include in the response. If more results exist than the specified
* MaxResults
value, a token is included in the response so that the remaining results can be
* retrieved.
*
*/
private Integer maxResults;
/**
*
* Null, or the token from a previous call to get the next set of results.
*
*/
private String nextToken;
/**
*
* The identifier for a specific resolution.
*
*/
private String resolutionId;
/**
*
* Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
* partition
:resiliencehub:region
:account
:app/app-id
. For more
* information about ARNs, see
* Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
*
*
* @param appArn
* Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
* partition
:resiliencehub:region
:account
:app/app-id
. For
* more information about ARNs, see Amazon Resource Names
* (ARNs) in the Amazon Web Services General Reference guide.
*/
public void setAppArn(String appArn) {
this.appArn = appArn;
}
/**
*
* Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
* partition
:resiliencehub:region
:account
:app/app-id
. For more
* information about ARNs, see
* Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
*
*
* @return Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
* partition
:resiliencehub:region
:account
:app/app-id
.
* For more information about ARNs, see Amazon Resource Names
* (ARNs) in the Amazon Web Services General Reference guide.
*/
public String getAppArn() {
return this.appArn;
}
/**
*
* Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
* partition
:resiliencehub:region
:account
:app/app-id
. For more
* information about ARNs, see
* Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
*
*
* @param appArn
* Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
* partition
:resiliencehub:region
:account
:app/app-id
. For
* more information about ARNs, see Amazon Resource Names
* (ARNs) in the Amazon Web Services General Reference guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListUnsupportedAppVersionResourcesRequest withAppArn(String appArn) {
setAppArn(appArn);
return this;
}
/**
*
* The version of the application.
*
*
* @param appVersion
* The version of the application.
*/
public void setAppVersion(String appVersion) {
this.appVersion = appVersion;
}
/**
*
* The version of the application.
*
*
* @return The version of the application.
*/
public String getAppVersion() {
return this.appVersion;
}
/**
*
* The version of the application.
*
*
* @param appVersion
* The version of the application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListUnsupportedAppVersionResourcesRequest withAppVersion(String appVersion) {
setAppVersion(appVersion);
return this;
}
/**
*
* Maximum number of results to include in the response. If more results exist than the specified
* MaxResults
value, a token is included in the response so that the remaining results can be
* retrieved.
*
*
* @param maxResults
* Maximum number of results to include in the response. If more results exist than the specified
* MaxResults
value, a token is included in the response so that the remaining results can be
* retrieved.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* Maximum number of results to include in the response. If more results exist than the specified
* MaxResults
value, a token is included in the response so that the remaining results can be
* retrieved.
*
*
* @return Maximum number of results to include in the response. If more results exist than the specified
* MaxResults
value, a token is included in the response so that the remaining results can be
* retrieved.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* Maximum number of results to include in the response. If more results exist than the specified
* MaxResults
value, a token is included in the response so that the remaining results can be
* retrieved.
*
*
* @param maxResults
* Maximum number of results to include in the response. If more results exist than the specified
* MaxResults
value, a token is included in the response so that the remaining results can be
* retrieved.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListUnsupportedAppVersionResourcesRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* Null, or the token from a previous call to get the next set of results.
*
*
* @param nextToken
* Null, or the token from a previous call to get the next set of results.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* Null, or the token from a previous call to get the next set of results.
*
*
* @return Null, or the token from a previous call to get the next set of results.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* Null, or the token from a previous call to get the next set of results.
*
*
* @param nextToken
* Null, or the token from a previous call to get the next set of results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListUnsupportedAppVersionResourcesRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* The identifier for a specific resolution.
*
*
* @param resolutionId
* The identifier for a specific resolution.
*/
public void setResolutionId(String resolutionId) {
this.resolutionId = resolutionId;
}
/**
*
* The identifier for a specific resolution.
*
*
* @return The identifier for a specific resolution.
*/
public String getResolutionId() {
return this.resolutionId;
}
/**
*
* The identifier for a specific resolution.
*
*
* @param resolutionId
* The identifier for a specific resolution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListUnsupportedAppVersionResourcesRequest withResolutionId(String resolutionId) {
setResolutionId(resolutionId);
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 (getAppArn() != null)
sb.append("AppArn: ").append(getAppArn()).append(",");
if (getAppVersion() != null)
sb.append("AppVersion: ").append(getAppVersion()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getResolutionId() != null)
sb.append("ResolutionId: ").append(getResolutionId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListUnsupportedAppVersionResourcesRequest == false)
return false;
ListUnsupportedAppVersionResourcesRequest other = (ListUnsupportedAppVersionResourcesRequest) obj;
if (other.getAppArn() == null ^ this.getAppArn() == null)
return false;
if (other.getAppArn() != null && other.getAppArn().equals(this.getAppArn()) == false)
return false;
if (other.getAppVersion() == null ^ this.getAppVersion() == null)
return false;
if (other.getAppVersion() != null && other.getAppVersion().equals(this.getAppVersion()) == false)
return false;
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.getResolutionId() == null ^ this.getResolutionId() == null)
return false;
if (other.getResolutionId() != null && other.getResolutionId().equals(this.getResolutionId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAppArn() == null) ? 0 : getAppArn().hashCode());
hashCode = prime * hashCode + ((getAppVersion() == null) ? 0 : getAppVersion().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getResolutionId() == null) ? 0 : getResolutionId().hashCode());
return hashCode;
}
@Override
public ListUnsupportedAppVersionResourcesRequest clone() {
return (ListUnsupportedAppVersionResourcesRequest) super.clone();
}
}