com.amazonaws.services.groundstation.model.ListMissionProfilesResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-groundstation 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.groundstation.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ListMissionProfilesResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* List of mission profiles.
*
*/
private java.util.List missionProfileList;
/**
*
* Next token returned in the response of a previous ListMissionProfiles
call. Used to get the next
* page of results.
*
*/
private String nextToken;
/**
*
* List of mission profiles.
*
*
* @return List of mission profiles.
*/
public java.util.List getMissionProfileList() {
return missionProfileList;
}
/**
*
* List of mission profiles.
*
*
* @param missionProfileList
* List of mission profiles.
*/
public void setMissionProfileList(java.util.Collection missionProfileList) {
if (missionProfileList == null) {
this.missionProfileList = null;
return;
}
this.missionProfileList = new java.util.ArrayList(missionProfileList);
}
/**
*
* List of mission profiles.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setMissionProfileList(java.util.Collection)} or {@link #withMissionProfileList(java.util.Collection)} if
* you want to override the existing values.
*
*
* @param missionProfileList
* List of mission profiles.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListMissionProfilesResult withMissionProfileList(MissionProfileListItem... missionProfileList) {
if (this.missionProfileList == null) {
setMissionProfileList(new java.util.ArrayList(missionProfileList.length));
}
for (MissionProfileListItem ele : missionProfileList) {
this.missionProfileList.add(ele);
}
return this;
}
/**
*
* List of mission profiles.
*
*
* @param missionProfileList
* List of mission profiles.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListMissionProfilesResult withMissionProfileList(java.util.Collection missionProfileList) {
setMissionProfileList(missionProfileList);
return this;
}
/**
*
* Next token returned in the response of a previous ListMissionProfiles
call. Used to get the next
* page of results.
*
*
* @param nextToken
* Next token returned in the response of a previous ListMissionProfiles
call. Used to get the
* next page of results.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* Next token returned in the response of a previous ListMissionProfiles
call. Used to get the next
* page of results.
*
*
* @return Next token returned in the response of a previous ListMissionProfiles
call. Used to get the
* next page of results.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* Next token returned in the response of a previous ListMissionProfiles
call. Used to get the next
* page of results.
*
*
* @param nextToken
* Next token returned in the response of a previous ListMissionProfiles
call. Used to get the
* next page of results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListMissionProfilesResult withNextToken(String nextToken) {
setNextToken(nextToken);
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 (getMissionProfileList() != null)
sb.append("MissionProfileList: ").append(getMissionProfileList()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListMissionProfilesResult == false)
return false;
ListMissionProfilesResult other = (ListMissionProfilesResult) obj;
if (other.getMissionProfileList() == null ^ this.getMissionProfileList() == null)
return false;
if (other.getMissionProfileList() != null && other.getMissionProfileList().equals(this.getMissionProfileList()) == false)
return false;
if (other.getNextToken() == null ^ this.getNextToken() == null)
return false;
if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMissionProfileList() == null) ? 0 : getMissionProfileList().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
return hashCode;
}
@Override
public ListMissionProfilesResult clone() {
try {
return (ListMissionProfilesResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}