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

com.amazonaws.services.iotsecuretunneling.model.OpenTunnelRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS IoT Secure Tunneling module holds the client classes that are used for communicating with AWS IoT Secure Tunneling 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.iotsecuretunneling.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 OpenTunnelRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* A short text description of the tunnel. *

*/ private String description; /** *

* A collection of tag metadata. *

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

* The destination configuration for the OpenTunnel request. *

*/ private DestinationConfig destinationConfig; /** *

* Timeout configuration for a tunnel. *

*/ private TimeoutConfig timeoutConfig; /** *

* A short text description of the tunnel. *

* * @param description * A short text description of the tunnel. */ public void setDescription(String description) { this.description = description; } /** *

* A short text description of the tunnel. *

* * @return A short text description of the tunnel. */ public String getDescription() { return this.description; } /** *

* A short text description of the tunnel. *

* * @param description * A short text description of the tunnel. * @return Returns a reference to this object so that method calls can be chained together. */ public OpenTunnelRequest withDescription(String description) { setDescription(description); return this; } /** *

* A collection of tag metadata. *

* * @return A collection of tag metadata. */ public java.util.List getTags() { return tags; } /** *

* A collection of tag metadata. *

* * @param tags * A collection of tag metadata. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* A collection of tag metadata. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *

* * @param tags * A collection of tag metadata. * @return Returns a reference to this object so that method calls can be chained together. */ public OpenTunnelRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* A collection of tag metadata. *

* * @param tags * A collection of tag metadata. * @return Returns a reference to this object so that method calls can be chained together. */ public OpenTunnelRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

* The destination configuration for the OpenTunnel request. *

* * @param destinationConfig * The destination configuration for the OpenTunnel request. */ public void setDestinationConfig(DestinationConfig destinationConfig) { this.destinationConfig = destinationConfig; } /** *

* The destination configuration for the OpenTunnel request. *

* * @return The destination configuration for the OpenTunnel request. */ public DestinationConfig getDestinationConfig() { return this.destinationConfig; } /** *

* The destination configuration for the OpenTunnel request. *

* * @param destinationConfig * The destination configuration for the OpenTunnel request. * @return Returns a reference to this object so that method calls can be chained together. */ public OpenTunnelRequest withDestinationConfig(DestinationConfig destinationConfig) { setDestinationConfig(destinationConfig); return this; } /** *

* Timeout configuration for a tunnel. *

* * @param timeoutConfig * Timeout configuration for a tunnel. */ public void setTimeoutConfig(TimeoutConfig timeoutConfig) { this.timeoutConfig = timeoutConfig; } /** *

* Timeout configuration for a tunnel. *

* * @return Timeout configuration for a tunnel. */ public TimeoutConfig getTimeoutConfig() { return this.timeoutConfig; } /** *

* Timeout configuration for a tunnel. *

* * @param timeoutConfig * Timeout configuration for a tunnel. * @return Returns a reference to this object so that method calls can be chained together. */ public OpenTunnelRequest withTimeoutConfig(TimeoutConfig timeoutConfig) { setTimeoutConfig(timeoutConfig); 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 (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getDestinationConfig() != null) sb.append("DestinationConfig: ").append(getDestinationConfig()).append(","); if (getTimeoutConfig() != null) sb.append("TimeoutConfig: ").append(getTimeoutConfig()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof OpenTunnelRequest == false) return false; OpenTunnelRequest other = (OpenTunnelRequest) obj; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == 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.getDestinationConfig() == null ^ this.getDestinationConfig() == null) return false; if (other.getDestinationConfig() != null && other.getDestinationConfig().equals(this.getDestinationConfig()) == false) return false; if (other.getTimeoutConfig() == null ^ this.getTimeoutConfig() == null) return false; if (other.getTimeoutConfig() != null && other.getTimeoutConfig().equals(this.getTimeoutConfig()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getDestinationConfig() == null) ? 0 : getDestinationConfig().hashCode()); hashCode = prime * hashCode + ((getTimeoutConfig() == null) ? 0 : getTimeoutConfig().hashCode()); return hashCode; } @Override public OpenTunnelRequest clone() { return (OpenTunnelRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy