
com.amazonaws.services.nimblestudio.model.ListLaunchProfilesRequest Maven / Gradle / Ivy
/*
* Copyright 2016-2021 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.nimblestudio.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 ListLaunchProfilesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The max number of results to return in the response.
*
*/
private Integer maxResults;
/**
*
* The token to request the next page of results.
*
*/
private String nextToken;
/**
*
* The principal ID. This currently supports a Amazon Web Services SSO UserId.
*
*/
private String principalId;
/**
*
* Filter this request to launch profiles in any of the given states.
*
*/
private java.util.List states;
/**
*
* The studio ID.
*
*/
private String studioId;
/**
*
* The max number of results to return in the response.
*
*
* @param maxResults
* The max number of results to return in the response.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* The max number of results to return in the response.
*
*
* @return The max number of results to return in the response.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* The max number of results to return in the response.
*
*
* @param maxResults
* The max number of results to return in the response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListLaunchProfilesRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* The token to request the next page of results.
*
*
* @param nextToken
* The token to request the next page of results.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* The token to request the next page of results.
*
*
* @return The token to request the next page of results.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* The token to request the next page of results.
*
*
* @param nextToken
* The token to request the next page of results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListLaunchProfilesRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* The principal ID. This currently supports a Amazon Web Services SSO UserId.
*
*
* @param principalId
* The principal ID. This currently supports a Amazon Web Services SSO UserId.
*/
public void setPrincipalId(String principalId) {
this.principalId = principalId;
}
/**
*
* The principal ID. This currently supports a Amazon Web Services SSO UserId.
*
*
* @return The principal ID. This currently supports a Amazon Web Services SSO UserId.
*/
public String getPrincipalId() {
return this.principalId;
}
/**
*
* The principal ID. This currently supports a Amazon Web Services SSO UserId.
*
*
* @param principalId
* The principal ID. This currently supports a Amazon Web Services SSO UserId.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListLaunchProfilesRequest withPrincipalId(String principalId) {
setPrincipalId(principalId);
return this;
}
/**
*
* Filter this request to launch profiles in any of the given states.
*
*
* @return Filter this request to launch profiles in any of the given states.
*/
public java.util.List getStates() {
return states;
}
/**
*
* Filter this request to launch profiles in any of the given states.
*
*
* @param states
* Filter this request to launch profiles in any of the given states.
*/
public void setStates(java.util.Collection states) {
if (states == null) {
this.states = null;
return;
}
this.states = new java.util.ArrayList(states);
}
/**
*
* Filter this request to launch profiles in any of the given states.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setStates(java.util.Collection)} or {@link #withStates(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param states
* Filter this request to launch profiles in any of the given states.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListLaunchProfilesRequest withStates(String... states) {
if (this.states == null) {
setStates(new java.util.ArrayList(states.length));
}
for (String ele : states) {
this.states.add(ele);
}
return this;
}
/**
*
* Filter this request to launch profiles in any of the given states.
*
*
* @param states
* Filter this request to launch profiles in any of the given states.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListLaunchProfilesRequest withStates(java.util.Collection states) {
setStates(states);
return this;
}
/**
*
* The studio ID.
*
*
* @param studioId
* The studio ID.
*/
public void setStudioId(String studioId) {
this.studioId = studioId;
}
/**
*
* The studio ID.
*
*
* @return The studio ID.
*/
public String getStudioId() {
return this.studioId;
}
/**
*
* The studio ID.
*
*
* @param studioId
* The studio ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListLaunchProfilesRequest withStudioId(String studioId) {
setStudioId(studioId);
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 (getPrincipalId() != null)
sb.append("PrincipalId: ").append(getPrincipalId()).append(",");
if (getStates() != null)
sb.append("States: ").append(getStates()).append(",");
if (getStudioId() != null)
sb.append("StudioId: ").append(getStudioId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListLaunchProfilesRequest == false)
return false;
ListLaunchProfilesRequest other = (ListLaunchProfilesRequest) 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.getPrincipalId() == null ^ this.getPrincipalId() == null)
return false;
if (other.getPrincipalId() != null && other.getPrincipalId().equals(this.getPrincipalId()) == false)
return false;
if (other.getStates() == null ^ this.getStates() == null)
return false;
if (other.getStates() != null && other.getStates().equals(this.getStates()) == false)
return false;
if (other.getStudioId() == null ^ this.getStudioId() == null)
return false;
if (other.getStudioId() != null && other.getStudioId().equals(this.getStudioId()) == 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 + ((getPrincipalId() == null) ? 0 : getPrincipalId().hashCode());
hashCode = prime * hashCode + ((getStates() == null) ? 0 : getStates().hashCode());
hashCode = prime * hashCode + ((getStudioId() == null) ? 0 : getStudioId().hashCode());
return hashCode;
}
@Override
public ListLaunchProfilesRequest clone() {
return (ListLaunchProfilesRequest) super.clone();
}
}