com.amazonaws.services.groundstation.model.UpdateMissionProfileRequest 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;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateMissionProfileRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* Amount of time after a contact ends that you’d like to receive a Ground Station Contact State Change event
* indicating the pass has finished.
*
*/
private Integer contactPostPassDurationSeconds;
/**
*
* Amount of time after a contact ends that you’d like to receive a Ground Station Contact State Change event
* indicating the pass has finished.
*
*/
private Integer contactPrePassDurationSeconds;
/**
*
* A list of lists of ARNs. Each list of ARNs is an edge, with a from Config
and a to
* Config
.
*
*/
private java.util.List> dataflowEdges;
/**
*
* Smallest amount of time in seconds that you’d like to see for an available contact. AWS Ground Station will not
* present you with contacts shorter than this duration.
*
*/
private Integer minimumViableContactDurationSeconds;
/**
*
* UUID of a mission profile.
*
*/
private String missionProfileId;
/**
*
* Name of a mission profile.
*
*/
private String name;
/**
*
* KMS key to use for encrypting streams.
*
*/
private KmsKey streamsKmsKey;
/**
*
* Role to use for encrypting streams with KMS key.
*
*/
private String streamsKmsRole;
/**
*
* ARN of a tracking Config
.
*
*/
private String trackingConfigArn;
/**
*
* Amount of time after a contact ends that you’d like to receive a Ground Station Contact State Change event
* indicating the pass has finished.
*
*
* @param contactPostPassDurationSeconds
* Amount of time after a contact ends that you’d like to receive a Ground Station Contact State Change event
* indicating the pass has finished.
*/
public void setContactPostPassDurationSeconds(Integer contactPostPassDurationSeconds) {
this.contactPostPassDurationSeconds = contactPostPassDurationSeconds;
}
/**
*
* Amount of time after a contact ends that you’d like to receive a Ground Station Contact State Change event
* indicating the pass has finished.
*
*
* @return Amount of time after a contact ends that you’d like to receive a Ground Station Contact State Change
* event indicating the pass has finished.
*/
public Integer getContactPostPassDurationSeconds() {
return this.contactPostPassDurationSeconds;
}
/**
*
* Amount of time after a contact ends that you’d like to receive a Ground Station Contact State Change event
* indicating the pass has finished.
*
*
* @param contactPostPassDurationSeconds
* Amount of time after a contact ends that you’d like to receive a Ground Station Contact State Change event
* indicating the pass has finished.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMissionProfileRequest withContactPostPassDurationSeconds(Integer contactPostPassDurationSeconds) {
setContactPostPassDurationSeconds(contactPostPassDurationSeconds);
return this;
}
/**
*
* Amount of time after a contact ends that you’d like to receive a Ground Station Contact State Change event
* indicating the pass has finished.
*
*
* @param contactPrePassDurationSeconds
* Amount of time after a contact ends that you’d like to receive a Ground Station Contact State Change event
* indicating the pass has finished.
*/
public void setContactPrePassDurationSeconds(Integer contactPrePassDurationSeconds) {
this.contactPrePassDurationSeconds = contactPrePassDurationSeconds;
}
/**
*
* Amount of time after a contact ends that you’d like to receive a Ground Station Contact State Change event
* indicating the pass has finished.
*
*
* @return Amount of time after a contact ends that you’d like to receive a Ground Station Contact State Change
* event indicating the pass has finished.
*/
public Integer getContactPrePassDurationSeconds() {
return this.contactPrePassDurationSeconds;
}
/**
*
* Amount of time after a contact ends that you’d like to receive a Ground Station Contact State Change event
* indicating the pass has finished.
*
*
* @param contactPrePassDurationSeconds
* Amount of time after a contact ends that you’d like to receive a Ground Station Contact State Change event
* indicating the pass has finished.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMissionProfileRequest withContactPrePassDurationSeconds(Integer contactPrePassDurationSeconds) {
setContactPrePassDurationSeconds(contactPrePassDurationSeconds);
return this;
}
/**
*
* A list of lists of ARNs. Each list of ARNs is an edge, with a from Config
and a to
* Config
.
*
*
* @return A list of lists of ARNs. Each list of ARNs is an edge, with a from Config
and a
* to Config
.
*/
public java.util.List> getDataflowEdges() {
return dataflowEdges;
}
/**
*
* A list of lists of ARNs. Each list of ARNs is an edge, with a from Config
and a to
* Config
.
*
*
* @param dataflowEdges
* A list of lists of ARNs. Each list of ARNs is an edge, with a from Config
and a
* to Config
.
*/
public void setDataflowEdges(java.util.Collection> dataflowEdges) {
if (dataflowEdges == null) {
this.dataflowEdges = null;
return;
}
this.dataflowEdges = new java.util.ArrayList>(dataflowEdges);
}
/**
*
* A list of lists of ARNs. Each list of ARNs is an edge, with a from Config
and a to
* Config
.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDataflowEdges(java.util.Collection)} or {@link #withDataflowEdges(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param dataflowEdges
* A list of lists of ARNs. Each list of ARNs is an edge, with a from Config
and a
* to Config
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMissionProfileRequest withDataflowEdges(java.util.List... dataflowEdges) {
if (this.dataflowEdges == null) {
setDataflowEdges(new java.util.ArrayList>(dataflowEdges.length));
}
for (java.util.List ele : dataflowEdges) {
this.dataflowEdges.add(ele);
}
return this;
}
/**
*
* A list of lists of ARNs. Each list of ARNs is an edge, with a from Config
and a to
* Config
.
*
*
* @param dataflowEdges
* A list of lists of ARNs. Each list of ARNs is an edge, with a from Config
and a
* to Config
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMissionProfileRequest withDataflowEdges(java.util.Collection> dataflowEdges) {
setDataflowEdges(dataflowEdges);
return this;
}
/**
*
* Smallest amount of time in seconds that you’d like to see for an available contact. AWS Ground Station will not
* present you with contacts shorter than this duration.
*
*
* @param minimumViableContactDurationSeconds
* Smallest amount of time in seconds that you’d like to see for an available contact. AWS Ground Station
* will not present you with contacts shorter than this duration.
*/
public void setMinimumViableContactDurationSeconds(Integer minimumViableContactDurationSeconds) {
this.minimumViableContactDurationSeconds = minimumViableContactDurationSeconds;
}
/**
*
* Smallest amount of time in seconds that you’d like to see for an available contact. AWS Ground Station will not
* present you with contacts shorter than this duration.
*
*
* @return Smallest amount of time in seconds that you’d like to see for an available contact. AWS Ground Station
* will not present you with contacts shorter than this duration.
*/
public Integer getMinimumViableContactDurationSeconds() {
return this.minimumViableContactDurationSeconds;
}
/**
*
* Smallest amount of time in seconds that you’d like to see for an available contact. AWS Ground Station will not
* present you with contacts shorter than this duration.
*
*
* @param minimumViableContactDurationSeconds
* Smallest amount of time in seconds that you’d like to see for an available contact. AWS Ground Station
* will not present you with contacts shorter than this duration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMissionProfileRequest withMinimumViableContactDurationSeconds(Integer minimumViableContactDurationSeconds) {
setMinimumViableContactDurationSeconds(minimumViableContactDurationSeconds);
return this;
}
/**
*
* UUID of a mission profile.
*
*
* @param missionProfileId
* UUID of a mission profile.
*/
public void setMissionProfileId(String missionProfileId) {
this.missionProfileId = missionProfileId;
}
/**
*
* UUID of a mission profile.
*
*
* @return UUID of a mission profile.
*/
public String getMissionProfileId() {
return this.missionProfileId;
}
/**
*
* UUID of a mission profile.
*
*
* @param missionProfileId
* UUID of a mission profile.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMissionProfileRequest withMissionProfileId(String missionProfileId) {
setMissionProfileId(missionProfileId);
return this;
}
/**
*
* Name of a mission profile.
*
*
* @param name
* Name of a mission profile.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* Name of a mission profile.
*
*
* @return Name of a mission profile.
*/
public String getName() {
return this.name;
}
/**
*
* Name of a mission profile.
*
*
* @param name
* Name of a mission profile.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMissionProfileRequest withName(String name) {
setName(name);
return this;
}
/**
*
* KMS key to use for encrypting streams.
*
*
* @param streamsKmsKey
* KMS key to use for encrypting streams.
*/
public void setStreamsKmsKey(KmsKey streamsKmsKey) {
this.streamsKmsKey = streamsKmsKey;
}
/**
*
* KMS key to use for encrypting streams.
*
*
* @return KMS key to use for encrypting streams.
*/
public KmsKey getStreamsKmsKey() {
return this.streamsKmsKey;
}
/**
*
* KMS key to use for encrypting streams.
*
*
* @param streamsKmsKey
* KMS key to use for encrypting streams.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMissionProfileRequest withStreamsKmsKey(KmsKey streamsKmsKey) {
setStreamsKmsKey(streamsKmsKey);
return this;
}
/**
*
* Role to use for encrypting streams with KMS key.
*
*
* @param streamsKmsRole
* Role to use for encrypting streams with KMS key.
*/
public void setStreamsKmsRole(String streamsKmsRole) {
this.streamsKmsRole = streamsKmsRole;
}
/**
*
* Role to use for encrypting streams with KMS key.
*
*
* @return Role to use for encrypting streams with KMS key.
*/
public String getStreamsKmsRole() {
return this.streamsKmsRole;
}
/**
*
* Role to use for encrypting streams with KMS key.
*
*
* @param streamsKmsRole
* Role to use for encrypting streams with KMS key.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMissionProfileRequest withStreamsKmsRole(String streamsKmsRole) {
setStreamsKmsRole(streamsKmsRole);
return this;
}
/**
*
* ARN of a tracking Config
.
*
*
* @param trackingConfigArn
* ARN of a tracking Config
.
*/
public void setTrackingConfigArn(String trackingConfigArn) {
this.trackingConfigArn = trackingConfigArn;
}
/**
*
* ARN of a tracking Config
.
*
*
* @return ARN of a tracking Config
.
*/
public String getTrackingConfigArn() {
return this.trackingConfigArn;
}
/**
*
* ARN of a tracking Config
.
*
*
* @param trackingConfigArn
* ARN of a tracking Config
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMissionProfileRequest withTrackingConfigArn(String trackingConfigArn) {
setTrackingConfigArn(trackingConfigArn);
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 (getContactPostPassDurationSeconds() != null)
sb.append("ContactPostPassDurationSeconds: ").append(getContactPostPassDurationSeconds()).append(",");
if (getContactPrePassDurationSeconds() != null)
sb.append("ContactPrePassDurationSeconds: ").append(getContactPrePassDurationSeconds()).append(",");
if (getDataflowEdges() != null)
sb.append("DataflowEdges: ").append(getDataflowEdges()).append(",");
if (getMinimumViableContactDurationSeconds() != null)
sb.append("MinimumViableContactDurationSeconds: ").append(getMinimumViableContactDurationSeconds()).append(",");
if (getMissionProfileId() != null)
sb.append("MissionProfileId: ").append(getMissionProfileId()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getStreamsKmsKey() != null)
sb.append("StreamsKmsKey: ").append(getStreamsKmsKey()).append(",");
if (getStreamsKmsRole() != null)
sb.append("StreamsKmsRole: ").append(getStreamsKmsRole()).append(",");
if (getTrackingConfigArn() != null)
sb.append("TrackingConfigArn: ").append(getTrackingConfigArn());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateMissionProfileRequest == false)
return false;
UpdateMissionProfileRequest other = (UpdateMissionProfileRequest) obj;
if (other.getContactPostPassDurationSeconds() == null ^ this.getContactPostPassDurationSeconds() == null)
return false;
if (other.getContactPostPassDurationSeconds() != null
&& other.getContactPostPassDurationSeconds().equals(this.getContactPostPassDurationSeconds()) == false)
return false;
if (other.getContactPrePassDurationSeconds() == null ^ this.getContactPrePassDurationSeconds() == null)
return false;
if (other.getContactPrePassDurationSeconds() != null
&& other.getContactPrePassDurationSeconds().equals(this.getContactPrePassDurationSeconds()) == false)
return false;
if (other.getDataflowEdges() == null ^ this.getDataflowEdges() == null)
return false;
if (other.getDataflowEdges() != null && other.getDataflowEdges().equals(this.getDataflowEdges()) == false)
return false;
if (other.getMinimumViableContactDurationSeconds() == null ^ this.getMinimumViableContactDurationSeconds() == null)
return false;
if (other.getMinimumViableContactDurationSeconds() != null
&& other.getMinimumViableContactDurationSeconds().equals(this.getMinimumViableContactDurationSeconds()) == false)
return false;
if (other.getMissionProfileId() == null ^ this.getMissionProfileId() == null)
return false;
if (other.getMissionProfileId() != null && other.getMissionProfileId().equals(this.getMissionProfileId()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getStreamsKmsKey() == null ^ this.getStreamsKmsKey() == null)
return false;
if (other.getStreamsKmsKey() != null && other.getStreamsKmsKey().equals(this.getStreamsKmsKey()) == false)
return false;
if (other.getStreamsKmsRole() == null ^ this.getStreamsKmsRole() == null)
return false;
if (other.getStreamsKmsRole() != null && other.getStreamsKmsRole().equals(this.getStreamsKmsRole()) == false)
return false;
if (other.getTrackingConfigArn() == null ^ this.getTrackingConfigArn() == null)
return false;
if (other.getTrackingConfigArn() != null && other.getTrackingConfigArn().equals(this.getTrackingConfigArn()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getContactPostPassDurationSeconds() == null) ? 0 : getContactPostPassDurationSeconds().hashCode());
hashCode = prime * hashCode + ((getContactPrePassDurationSeconds() == null) ? 0 : getContactPrePassDurationSeconds().hashCode());
hashCode = prime * hashCode + ((getDataflowEdges() == null) ? 0 : getDataflowEdges().hashCode());
hashCode = prime * hashCode + ((getMinimumViableContactDurationSeconds() == null) ? 0 : getMinimumViableContactDurationSeconds().hashCode());
hashCode = prime * hashCode + ((getMissionProfileId() == null) ? 0 : getMissionProfileId().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getStreamsKmsKey() == null) ? 0 : getStreamsKmsKey().hashCode());
hashCode = prime * hashCode + ((getStreamsKmsRole() == null) ? 0 : getStreamsKmsRole().hashCode());
hashCode = prime * hashCode + ((getTrackingConfigArn() == null) ? 0 : getTrackingConfigArn().hashCode());
return hashCode;
}
@Override
public UpdateMissionProfileRequest clone() {
return (UpdateMissionProfileRequest) super.clone();
}
}