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

com.amazonaws.services.panorama.model.StaticIpConnectionInfo Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
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.panorama.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* A static IP configuration. *

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

* The connection's default gateway. *

*/ private String defaultGateway; /** *

* The connection's DNS address. *

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

* The connection's IP address. *

*/ private String ipAddress; /** *

* The connection's DNS mask. *

*/ private String mask; /** *

* The connection's default gateway. *

* * @param defaultGateway * The connection's default gateway. */ public void setDefaultGateway(String defaultGateway) { this.defaultGateway = defaultGateway; } /** *

* The connection's default gateway. *

* * @return The connection's default gateway. */ public String getDefaultGateway() { return this.defaultGateway; } /** *

* The connection's default gateway. *

* * @param defaultGateway * The connection's default gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public StaticIpConnectionInfo withDefaultGateway(String defaultGateway) { setDefaultGateway(defaultGateway); return this; } /** *

* The connection's DNS address. *

* * @return The connection's DNS address. */ public java.util.List getDns() { return dns; } /** *

* The connection's DNS address. *

* * @param dns * The connection's DNS address. */ public void setDns(java.util.Collection dns) { if (dns == null) { this.dns = null; return; } this.dns = new java.util.ArrayList(dns); } /** *

* The connection's DNS address. *

*

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

* * @param dns * The connection's DNS address. * @return Returns a reference to this object so that method calls can be chained together. */ public StaticIpConnectionInfo withDns(String... dns) { if (this.dns == null) { setDns(new java.util.ArrayList(dns.length)); } for (String ele : dns) { this.dns.add(ele); } return this; } /** *

* The connection's DNS address. *

* * @param dns * The connection's DNS address. * @return Returns a reference to this object so that method calls can be chained together. */ public StaticIpConnectionInfo withDns(java.util.Collection dns) { setDns(dns); return this; } /** *

* The connection's IP address. *

* * @param ipAddress * The connection's IP address. */ public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } /** *

* The connection's IP address. *

* * @return The connection's IP address. */ public String getIpAddress() { return this.ipAddress; } /** *

* The connection's IP address. *

* * @param ipAddress * The connection's IP address. * @return Returns a reference to this object so that method calls can be chained together. */ public StaticIpConnectionInfo withIpAddress(String ipAddress) { setIpAddress(ipAddress); return this; } /** *

* The connection's DNS mask. *

* * @param mask * The connection's DNS mask. */ public void setMask(String mask) { this.mask = mask; } /** *

* The connection's DNS mask. *

* * @return The connection's DNS mask. */ public String getMask() { return this.mask; } /** *

* The connection's DNS mask. *

* * @param mask * The connection's DNS mask. * @return Returns a reference to this object so that method calls can be chained together. */ public StaticIpConnectionInfo withMask(String mask) { setMask(mask); 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 (getDefaultGateway() != null) sb.append("DefaultGateway: ").append(getDefaultGateway()).append(","); if (getDns() != null) sb.append("Dns: ").append(getDns()).append(","); if (getIpAddress() != null) sb.append("IpAddress: ").append(getIpAddress()).append(","); if (getMask() != null) sb.append("Mask: ").append(getMask()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StaticIpConnectionInfo == false) return false; StaticIpConnectionInfo other = (StaticIpConnectionInfo) obj; if (other.getDefaultGateway() == null ^ this.getDefaultGateway() == null) return false; if (other.getDefaultGateway() != null && other.getDefaultGateway().equals(this.getDefaultGateway()) == false) return false; if (other.getDns() == null ^ this.getDns() == null) return false; if (other.getDns() != null && other.getDns().equals(this.getDns()) == false) return false; if (other.getIpAddress() == null ^ this.getIpAddress() == null) return false; if (other.getIpAddress() != null && other.getIpAddress().equals(this.getIpAddress()) == false) return false; if (other.getMask() == null ^ this.getMask() == null) return false; if (other.getMask() != null && other.getMask().equals(this.getMask()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDefaultGateway() == null) ? 0 : getDefaultGateway().hashCode()); hashCode = prime * hashCode + ((getDns() == null) ? 0 : getDns().hashCode()); hashCode = prime * hashCode + ((getIpAddress() == null) ? 0 : getIpAddress().hashCode()); hashCode = prime * hashCode + ((getMask() == null) ? 0 : getMask().hashCode()); return hashCode; } @Override public StaticIpConnectionInfo clone() { try { return (StaticIpConnectionInfo) 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.panorama.model.transform.StaticIpConnectionInfoMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy