All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.groundstation.model.CreateMissionProfileRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Ground Station module holds the client classes that are used for communicating with AWS Ground Station Service

There is a newer version: 1.12.778
Show newest version
/*
 * 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 CreateMissionProfileRequest 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 prior to contact start you’d like to receive a Ground Station Contact State Change event * indicating an upcoming pass. *

*/ 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; /** *

* 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; /** *

* Tags assigned to a mission profile. *

*/ private java.util.Map tags; /** *

* 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 CreateMissionProfileRequest withContactPostPassDurationSeconds(Integer contactPostPassDurationSeconds) { setContactPostPassDurationSeconds(contactPostPassDurationSeconds); return this; } /** *

* Amount of time prior to contact start you’d like to receive a Ground Station Contact State Change event * indicating an upcoming pass. *

* * @param contactPrePassDurationSeconds * Amount of time prior to contact start you’d like to receive a Ground Station Contact State Change event * indicating an upcoming pass. */ public void setContactPrePassDurationSeconds(Integer contactPrePassDurationSeconds) { this.contactPrePassDurationSeconds = contactPrePassDurationSeconds; } /** *

* Amount of time prior to contact start you’d like to receive a Ground Station Contact State Change event * indicating an upcoming pass. *

* * @return Amount of time prior to contact start you’d like to receive a Ground Station Contact State Change event * indicating an upcoming pass. */ public Integer getContactPrePassDurationSeconds() { return this.contactPrePassDurationSeconds; } /** *

* Amount of time prior to contact start you’d like to receive a Ground Station Contact State Change event * indicating an upcoming pass. *

* * @param contactPrePassDurationSeconds * Amount of time prior to contact start you’d like to receive a Ground Station Contact State Change event * indicating an upcoming pass. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMissionProfileRequest 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 CreateMissionProfileRequest 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 CreateMissionProfileRequest 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 CreateMissionProfileRequest withMinimumViableContactDurationSeconds(Integer minimumViableContactDurationSeconds) { setMinimumViableContactDurationSeconds(minimumViableContactDurationSeconds); 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 CreateMissionProfileRequest 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 CreateMissionProfileRequest 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 CreateMissionProfileRequest withStreamsKmsRole(String streamsKmsRole) { setStreamsKmsRole(streamsKmsRole); return this; } /** *

* Tags assigned to a mission profile. *

* * @return Tags assigned to a mission profile. */ public java.util.Map getTags() { return tags; } /** *

* Tags assigned to a mission profile. *

* * @param tags * Tags assigned to a mission profile. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* Tags assigned to a mission profile. *

* * @param tags * Tags assigned to a mission profile. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMissionProfileRequest withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see CreateMissionProfileRequest#withTags * @returns a reference to this object so that method calls can be chained together. */ public CreateMissionProfileRequest addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMissionProfileRequest clearTagsEntries() { this.tags = null; 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 CreateMissionProfileRequest 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 (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 (getTags() != null) sb.append("Tags: ").append(getTags()).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 CreateMissionProfileRequest == false) return false; CreateMissionProfileRequest other = (CreateMissionProfileRequest) 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.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.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == 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 + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getStreamsKmsKey() == null) ? 0 : getStreamsKmsKey().hashCode()); hashCode = prime * hashCode + ((getStreamsKmsRole() == null) ? 0 : getStreamsKmsRole().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getTrackingConfigArn() == null) ? 0 : getTrackingConfigArn().hashCode()); return hashCode; } @Override public CreateMissionProfileRequest clone() { return (CreateMissionProfileRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy