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

com.amazonaws.services.ec2.model.LaunchTemplatePrivateDnsNameOptions Maven / Gradle / Ivy

Go to download

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

The 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.ec2.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 

* Describes the options for instance hostnames. *

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

* The type of hostname to assign to an instance. *

*/ private String hostnameType; /** *

* Indicates whether to respond to DNS queries for instance hostnames with DNS A records. *

*/ private Boolean enableResourceNameDnsARecord; /** *

* Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. *

*/ private Boolean enableResourceNameDnsAAAARecord; /** *

* The type of hostname to assign to an instance. *

* * @param hostnameType * The type of hostname to assign to an instance. * @see HostnameType */ public void setHostnameType(String hostnameType) { this.hostnameType = hostnameType; } /** *

* The type of hostname to assign to an instance. *

* * @return The type of hostname to assign to an instance. * @see HostnameType */ public String getHostnameType() { return this.hostnameType; } /** *

* The type of hostname to assign to an instance. *

* * @param hostnameType * The type of hostname to assign to an instance. * @return Returns a reference to this object so that method calls can be chained together. * @see HostnameType */ public LaunchTemplatePrivateDnsNameOptions withHostnameType(String hostnameType) { setHostnameType(hostnameType); return this; } /** *

* The type of hostname to assign to an instance. *

* * @param hostnameType * The type of hostname to assign to an instance. * @return Returns a reference to this object so that method calls can be chained together. * @see HostnameType */ public LaunchTemplatePrivateDnsNameOptions withHostnameType(HostnameType hostnameType) { this.hostnameType = hostnameType.toString(); return this; } /** *

* Indicates whether to respond to DNS queries for instance hostnames with DNS A records. *

* * @param enableResourceNameDnsARecord * Indicates whether to respond to DNS queries for instance hostnames with DNS A records. */ public void setEnableResourceNameDnsARecord(Boolean enableResourceNameDnsARecord) { this.enableResourceNameDnsARecord = enableResourceNameDnsARecord; } /** *

* Indicates whether to respond to DNS queries for instance hostnames with DNS A records. *

* * @return Indicates whether to respond to DNS queries for instance hostnames with DNS A records. */ public Boolean getEnableResourceNameDnsARecord() { return this.enableResourceNameDnsARecord; } /** *

* Indicates whether to respond to DNS queries for instance hostnames with DNS A records. *

* * @param enableResourceNameDnsARecord * Indicates whether to respond to DNS queries for instance hostnames with DNS A records. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchTemplatePrivateDnsNameOptions withEnableResourceNameDnsARecord(Boolean enableResourceNameDnsARecord) { setEnableResourceNameDnsARecord(enableResourceNameDnsARecord); return this; } /** *

* Indicates whether to respond to DNS queries for instance hostnames with DNS A records. *

* * @return Indicates whether to respond to DNS queries for instance hostnames with DNS A records. */ public Boolean isEnableResourceNameDnsARecord() { return this.enableResourceNameDnsARecord; } /** *

* Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. *

* * @param enableResourceNameDnsAAAARecord * Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. */ public void setEnableResourceNameDnsAAAARecord(Boolean enableResourceNameDnsAAAARecord) { this.enableResourceNameDnsAAAARecord = enableResourceNameDnsAAAARecord; } /** *

* Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. *

* * @return Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. */ public Boolean getEnableResourceNameDnsAAAARecord() { return this.enableResourceNameDnsAAAARecord; } /** *

* Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. *

* * @param enableResourceNameDnsAAAARecord * Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchTemplatePrivateDnsNameOptions withEnableResourceNameDnsAAAARecord(Boolean enableResourceNameDnsAAAARecord) { setEnableResourceNameDnsAAAARecord(enableResourceNameDnsAAAARecord); return this; } /** *

* Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. *

* * @return Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. */ public Boolean isEnableResourceNameDnsAAAARecord() { return this.enableResourceNameDnsAAAARecord; } /** * 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 (getHostnameType() != null) sb.append("HostnameType: ").append(getHostnameType()).append(","); if (getEnableResourceNameDnsARecord() != null) sb.append("EnableResourceNameDnsARecord: ").append(getEnableResourceNameDnsARecord()).append(","); if (getEnableResourceNameDnsAAAARecord() != null) sb.append("EnableResourceNameDnsAAAARecord: ").append(getEnableResourceNameDnsAAAARecord()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LaunchTemplatePrivateDnsNameOptions == false) return false; LaunchTemplatePrivateDnsNameOptions other = (LaunchTemplatePrivateDnsNameOptions) obj; if (other.getHostnameType() == null ^ this.getHostnameType() == null) return false; if (other.getHostnameType() != null && other.getHostnameType().equals(this.getHostnameType()) == false) return false; if (other.getEnableResourceNameDnsARecord() == null ^ this.getEnableResourceNameDnsARecord() == null) return false; if (other.getEnableResourceNameDnsARecord() != null && other.getEnableResourceNameDnsARecord().equals(this.getEnableResourceNameDnsARecord()) == false) return false; if (other.getEnableResourceNameDnsAAAARecord() == null ^ this.getEnableResourceNameDnsAAAARecord() == null) return false; if (other.getEnableResourceNameDnsAAAARecord() != null && other.getEnableResourceNameDnsAAAARecord().equals(this.getEnableResourceNameDnsAAAARecord()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHostnameType() == null) ? 0 : getHostnameType().hashCode()); hashCode = prime * hashCode + ((getEnableResourceNameDnsARecord() == null) ? 0 : getEnableResourceNameDnsARecord().hashCode()); hashCode = prime * hashCode + ((getEnableResourceNameDnsAAAARecord() == null) ? 0 : getEnableResourceNameDnsAAAARecord().hashCode()); return hashCode; } @Override public LaunchTemplatePrivateDnsNameOptions clone() { try { return (LaunchTemplatePrivateDnsNameOptions) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy