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

com.amazonaws.services.groundstation.model.EphemerisItem 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Ephemeris item. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EphemerisItem implements Serializable, Cloneable, StructuredPojo { /** *

* The time the ephemeris was uploaded in UTC. *

*/ private java.util.Date creationTime; /** *

* Whether or not the ephemeris is enabled. *

*/ private Boolean enabled; /** *

* The AWS Ground Station ephemeris ID. *

*/ private String ephemerisId; /** *

* A name string associated with the ephemeris. Used as a human-readable identifier for the ephemeris. *

*/ private String name; /** *

* Customer-provided priority score to establish the order in which overlapping ephemerides should be used. *

*

* The default for customer-provided ephemeris priority is 1, and higher numbers take precedence. *

*

* Priority must be 1 or greater *

*/ private Integer priority; /** *

* Source S3 object used for the ephemeris. *

*/ private S3Object sourceS3Object; /** *

* The status of the ephemeris. *

*/ private String status; /** *

* The time the ephemeris was uploaded in UTC. *

* * @param creationTime * The time the ephemeris was uploaded in UTC. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* The time the ephemeris was uploaded in UTC. *

* * @return The time the ephemeris was uploaded in UTC. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* The time the ephemeris was uploaded in UTC. *

* * @param creationTime * The time the ephemeris was uploaded in UTC. * @return Returns a reference to this object so that method calls can be chained together. */ public EphemerisItem withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* Whether or not the ephemeris is enabled. *

* * @param enabled * Whether or not the ephemeris is enabled. */ public void setEnabled(Boolean enabled) { this.enabled = enabled; } /** *

* Whether or not the ephemeris is enabled. *

* * @return Whether or not the ephemeris is enabled. */ public Boolean getEnabled() { return this.enabled; } /** *

* Whether or not the ephemeris is enabled. *

* * @param enabled * Whether or not the ephemeris is enabled. * @return Returns a reference to this object so that method calls can be chained together. */ public EphemerisItem withEnabled(Boolean enabled) { setEnabled(enabled); return this; } /** *

* Whether or not the ephemeris is enabled. *

* * @return Whether or not the ephemeris is enabled. */ public Boolean isEnabled() { return this.enabled; } /** *

* The AWS Ground Station ephemeris ID. *

* * @param ephemerisId * The AWS Ground Station ephemeris ID. */ public void setEphemerisId(String ephemerisId) { this.ephemerisId = ephemerisId; } /** *

* The AWS Ground Station ephemeris ID. *

* * @return The AWS Ground Station ephemeris ID. */ public String getEphemerisId() { return this.ephemerisId; } /** *

* The AWS Ground Station ephemeris ID. *

* * @param ephemerisId * The AWS Ground Station ephemeris ID. * @return Returns a reference to this object so that method calls can be chained together. */ public EphemerisItem withEphemerisId(String ephemerisId) { setEphemerisId(ephemerisId); return this; } /** *

* A name string associated with the ephemeris. Used as a human-readable identifier for the ephemeris. *

* * @param name * A name string associated with the ephemeris. Used as a human-readable identifier for the ephemeris. */ public void setName(String name) { this.name = name; } /** *

* A name string associated with the ephemeris. Used as a human-readable identifier for the ephemeris. *

* * @return A name string associated with the ephemeris. Used as a human-readable identifier for the ephemeris. */ public String getName() { return this.name; } /** *

* A name string associated with the ephemeris. Used as a human-readable identifier for the ephemeris. *

* * @param name * A name string associated with the ephemeris. Used as a human-readable identifier for the ephemeris. * @return Returns a reference to this object so that method calls can be chained together. */ public EphemerisItem withName(String name) { setName(name); return this; } /** *

* Customer-provided priority score to establish the order in which overlapping ephemerides should be used. *

*

* The default for customer-provided ephemeris priority is 1, and higher numbers take precedence. *

*

* Priority must be 1 or greater *

* * @param priority * Customer-provided priority score to establish the order in which overlapping ephemerides should be * used.

*

* The default for customer-provided ephemeris priority is 1, and higher numbers take precedence. *

*

* Priority must be 1 or greater */ public void setPriority(Integer priority) { this.priority = priority; } /** *

* Customer-provided priority score to establish the order in which overlapping ephemerides should be used. *

*

* The default for customer-provided ephemeris priority is 1, and higher numbers take precedence. *

*

* Priority must be 1 or greater *

* * @return Customer-provided priority score to establish the order in which overlapping ephemerides should be * used.

*

* The default for customer-provided ephemeris priority is 1, and higher numbers take precedence. *

*

* Priority must be 1 or greater */ public Integer getPriority() { return this.priority; } /** *

* Customer-provided priority score to establish the order in which overlapping ephemerides should be used. *

*

* The default for customer-provided ephemeris priority is 1, and higher numbers take precedence. *

*

* Priority must be 1 or greater *

* * @param priority * Customer-provided priority score to establish the order in which overlapping ephemerides should be * used.

*

* The default for customer-provided ephemeris priority is 1, and higher numbers take precedence. *

*

* Priority must be 1 or greater * @return Returns a reference to this object so that method calls can be chained together. */ public EphemerisItem withPriority(Integer priority) { setPriority(priority); return this; } /** *

* Source S3 object used for the ephemeris. *

* * @param sourceS3Object * Source S3 object used for the ephemeris. */ public void setSourceS3Object(S3Object sourceS3Object) { this.sourceS3Object = sourceS3Object; } /** *

* Source S3 object used for the ephemeris. *

* * @return Source S3 object used for the ephemeris. */ public S3Object getSourceS3Object() { return this.sourceS3Object; } /** *

* Source S3 object used for the ephemeris. *

* * @param sourceS3Object * Source S3 object used for the ephemeris. * @return Returns a reference to this object so that method calls can be chained together. */ public EphemerisItem withSourceS3Object(S3Object sourceS3Object) { setSourceS3Object(sourceS3Object); return this; } /** *

* The status of the ephemeris. *

* * @param status * The status of the ephemeris. * @see EphemerisStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the ephemeris. *

* * @return The status of the ephemeris. * @see EphemerisStatus */ public String getStatus() { return this.status; } /** *

* The status of the ephemeris. *

* * @param status * The status of the ephemeris. * @return Returns a reference to this object so that method calls can be chained together. * @see EphemerisStatus */ public EphemerisItem withStatus(String status) { setStatus(status); return this; } /** *

* The status of the ephemeris. *

* * @param status * The status of the ephemeris. * @return Returns a reference to this object so that method calls can be chained together. * @see EphemerisStatus */ public EphemerisItem withStatus(EphemerisStatus status) { this.status = status.toString(); 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 (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getEnabled() != null) sb.append("Enabled: ").append(getEnabled()).append(","); if (getEphemerisId() != null) sb.append("EphemerisId: ").append(getEphemerisId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getPriority() != null) sb.append("Priority: ").append(getPriority()).append(","); if (getSourceS3Object() != null) sb.append("SourceS3Object: ").append(getSourceS3Object()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EphemerisItem == false) return false; EphemerisItem other = (EphemerisItem) obj; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getEnabled() == null ^ this.getEnabled() == null) return false; if (other.getEnabled() != null && other.getEnabled().equals(this.getEnabled()) == false) return false; if (other.getEphemerisId() == null ^ this.getEphemerisId() == null) return false; if (other.getEphemerisId() != null && other.getEphemerisId().equals(this.getEphemerisId()) == 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.getPriority() == null ^ this.getPriority() == null) return false; if (other.getPriority() != null && other.getPriority().equals(this.getPriority()) == false) return false; if (other.getSourceS3Object() == null ^ this.getSourceS3Object() == null) return false; if (other.getSourceS3Object() != null && other.getSourceS3Object().equals(this.getSourceS3Object()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); hashCode = prime * hashCode + ((getEphemerisId() == null) ? 0 : getEphemerisId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getPriority() == null) ? 0 : getPriority().hashCode()); hashCode = prime * hashCode + ((getSourceS3Object() == null) ? 0 : getSourceS3Object().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public EphemerisItem clone() { try { return (EphemerisItem) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.groundstation.model.transform.EphemerisItemMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy