com.amazonaws.services.groundstation.model.CreateDataflowEndpointGroupRequest 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 CreateDataflowEndpointGroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* Amount of time, in seconds, after a contact ends that the Ground Station Dataflow Endpoint Group will be in a
* POSTPASS
state. A Ground Station Dataflow Endpoint Group State Change event will be emitted when the
* Dataflow Endpoint Group enters and exits the POSTPASS
state.
*
*/
private Integer contactPostPassDurationSeconds;
/**
*
* Amount of time, in seconds, before a contact starts that the Ground Station Dataflow Endpoint Group will be in a
* PREPASS
state. A Ground Station Dataflow Endpoint Group State Change event will be emitted when the
* Dataflow Endpoint Group enters and exits the PREPASS
state.
*
*/
private Integer contactPrePassDurationSeconds;
/**
*
* Endpoint details of each endpoint in the dataflow endpoint group.
*
*/
private java.util.List endpointDetails;
/**
*
* Tags of a dataflow endpoint group.
*
*/
private java.util.Map tags;
/**
*
* Amount of time, in seconds, after a contact ends that the Ground Station Dataflow Endpoint Group will be in a
* POSTPASS
state. A Ground Station Dataflow Endpoint Group State Change event will be emitted when the
* Dataflow Endpoint Group enters and exits the POSTPASS
state.
*
*
* @param contactPostPassDurationSeconds
* Amount of time, in seconds, after a contact ends that the Ground Station Dataflow Endpoint Group will be
* in a POSTPASS
state. A Ground Station Dataflow Endpoint Group State Change event will be
* emitted when the Dataflow Endpoint Group enters and exits the POSTPASS
state.
*/
public void setContactPostPassDurationSeconds(Integer contactPostPassDurationSeconds) {
this.contactPostPassDurationSeconds = contactPostPassDurationSeconds;
}
/**
*
* Amount of time, in seconds, after a contact ends that the Ground Station Dataflow Endpoint Group will be in a
* POSTPASS
state. A Ground Station Dataflow Endpoint Group State Change event will be emitted when the
* Dataflow Endpoint Group enters and exits the POSTPASS
state.
*
*
* @return Amount of time, in seconds, after a contact ends that the Ground Station Dataflow Endpoint Group will be
* in a POSTPASS
state. A Ground Station Dataflow Endpoint Group State Change event will be
* emitted when the Dataflow Endpoint Group enters and exits the POSTPASS
state.
*/
public Integer getContactPostPassDurationSeconds() {
return this.contactPostPassDurationSeconds;
}
/**
*
* Amount of time, in seconds, after a contact ends that the Ground Station Dataflow Endpoint Group will be in a
* POSTPASS
state. A Ground Station Dataflow Endpoint Group State Change event will be emitted when the
* Dataflow Endpoint Group enters and exits the POSTPASS
state.
*
*
* @param contactPostPassDurationSeconds
* Amount of time, in seconds, after a contact ends that the Ground Station Dataflow Endpoint Group will be
* in a POSTPASS
state. A Ground Station Dataflow Endpoint Group State Change event will be
* emitted when the Dataflow Endpoint Group enters and exits the POSTPASS
state.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDataflowEndpointGroupRequest withContactPostPassDurationSeconds(Integer contactPostPassDurationSeconds) {
setContactPostPassDurationSeconds(contactPostPassDurationSeconds);
return this;
}
/**
*
* Amount of time, in seconds, before a contact starts that the Ground Station Dataflow Endpoint Group will be in a
* PREPASS
state. A Ground Station Dataflow Endpoint Group State Change event will be emitted when the
* Dataflow Endpoint Group enters and exits the PREPASS
state.
*
*
* @param contactPrePassDurationSeconds
* Amount of time, in seconds, before a contact starts that the Ground Station Dataflow Endpoint Group will
* be in a PREPASS
state. A Ground Station Dataflow Endpoint Group State Change event will be
* emitted when the Dataflow Endpoint Group enters and exits the PREPASS
state.
*/
public void setContactPrePassDurationSeconds(Integer contactPrePassDurationSeconds) {
this.contactPrePassDurationSeconds = contactPrePassDurationSeconds;
}
/**
*
* Amount of time, in seconds, before a contact starts that the Ground Station Dataflow Endpoint Group will be in a
* PREPASS
state. A Ground Station Dataflow Endpoint Group State Change event will be emitted when the
* Dataflow Endpoint Group enters and exits the PREPASS
state.
*
*
* @return Amount of time, in seconds, before a contact starts that the Ground Station Dataflow Endpoint Group will
* be in a PREPASS
state. A Ground Station Dataflow Endpoint Group State Change event will be
* emitted when the Dataflow Endpoint Group enters and exits the PREPASS
state.
*/
public Integer getContactPrePassDurationSeconds() {
return this.contactPrePassDurationSeconds;
}
/**
*
* Amount of time, in seconds, before a contact starts that the Ground Station Dataflow Endpoint Group will be in a
* PREPASS
state. A Ground Station Dataflow Endpoint Group State Change event will be emitted when the
* Dataflow Endpoint Group enters and exits the PREPASS
state.
*
*
* @param contactPrePassDurationSeconds
* Amount of time, in seconds, before a contact starts that the Ground Station Dataflow Endpoint Group will
* be in a PREPASS
state. A Ground Station Dataflow Endpoint Group State Change event will be
* emitted when the Dataflow Endpoint Group enters and exits the PREPASS
state.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDataflowEndpointGroupRequest withContactPrePassDurationSeconds(Integer contactPrePassDurationSeconds) {
setContactPrePassDurationSeconds(contactPrePassDurationSeconds);
return this;
}
/**
*
* Endpoint details of each endpoint in the dataflow endpoint group.
*
*
* @return Endpoint details of each endpoint in the dataflow endpoint group.
*/
public java.util.List getEndpointDetails() {
return endpointDetails;
}
/**
*
* Endpoint details of each endpoint in the dataflow endpoint group.
*
*
* @param endpointDetails
* Endpoint details of each endpoint in the dataflow endpoint group.
*/
public void setEndpointDetails(java.util.Collection endpointDetails) {
if (endpointDetails == null) {
this.endpointDetails = null;
return;
}
this.endpointDetails = new java.util.ArrayList(endpointDetails);
}
/**
*
* Endpoint details of each endpoint in the dataflow endpoint group.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setEndpointDetails(java.util.Collection)} or {@link #withEndpointDetails(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param endpointDetails
* Endpoint details of each endpoint in the dataflow endpoint group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDataflowEndpointGroupRequest withEndpointDetails(EndpointDetails... endpointDetails) {
if (this.endpointDetails == null) {
setEndpointDetails(new java.util.ArrayList(endpointDetails.length));
}
for (EndpointDetails ele : endpointDetails) {
this.endpointDetails.add(ele);
}
return this;
}
/**
*
* Endpoint details of each endpoint in the dataflow endpoint group.
*
*
* @param endpointDetails
* Endpoint details of each endpoint in the dataflow endpoint group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDataflowEndpointGroupRequest withEndpointDetails(java.util.Collection endpointDetails) {
setEndpointDetails(endpointDetails);
return this;
}
/**
*
* Tags of a dataflow endpoint group.
*
*
* @return Tags of a dataflow endpoint group.
*/
public java.util.Map getTags() {
return tags;
}
/**
*
* Tags of a dataflow endpoint group.
*
*
* @param tags
* Tags of a dataflow endpoint group.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
*
* Tags of a dataflow endpoint group.
*
*
* @param tags
* Tags of a dataflow endpoint group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDataflowEndpointGroupRequest withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see CreateDataflowEndpointGroupRequest#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public CreateDataflowEndpointGroupRequest 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 CreateDataflowEndpointGroupRequest clearTagsEntries() {
this.tags = null;
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 (getEndpointDetails() != null)
sb.append("EndpointDetails: ").append(getEndpointDetails()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateDataflowEndpointGroupRequest == false)
return false;
CreateDataflowEndpointGroupRequest other = (CreateDataflowEndpointGroupRequest) 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.getEndpointDetails() == null ^ this.getEndpointDetails() == null)
return false;
if (other.getEndpointDetails() != null && other.getEndpointDetails().equals(this.getEndpointDetails()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == 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 + ((getEndpointDetails() == null) ? 0 : getEndpointDetails().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
return hashCode;
}
@Override
public CreateDataflowEndpointGroupRequest clone() {
return (CreateDataflowEndpointGroupRequest) super.clone();
}
}