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

com.amazonaws.services.ec2.model.CreateDefaultSubnetRequest 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

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2017-2022 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;

import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.CreateDefaultSubnetRequestMarshaller;

/**
 * 
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateDefaultSubnetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest {

    /**
     * 

* The Availability Zone in which to create the default subnet. *

*/ private String availabilityZone; /** *

* Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this Availability Zone, * you must delete it before you can create an IPv6 only subnet. *

*/ private Boolean ipv6Native; /** *

* The Availability Zone in which to create the default subnet. *

* * @param availabilityZone * The Availability Zone in which to create the default subnet. */ public void setAvailabilityZone(String availabilityZone) { this.availabilityZone = availabilityZone; } /** *

* The Availability Zone in which to create the default subnet. *

* * @return The Availability Zone in which to create the default subnet. */ public String getAvailabilityZone() { return this.availabilityZone; } /** *

* The Availability Zone in which to create the default subnet. *

* * @param availabilityZone * The Availability Zone in which to create the default subnet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDefaultSubnetRequest withAvailabilityZone(String availabilityZone) { setAvailabilityZone(availabilityZone); return this; } /** *

* Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this Availability Zone, * you must delete it before you can create an IPv6 only subnet. *

* * @param ipv6Native * Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this * Availability Zone, you must delete it before you can create an IPv6 only subnet. */ public void setIpv6Native(Boolean ipv6Native) { this.ipv6Native = ipv6Native; } /** *

* Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this Availability Zone, * you must delete it before you can create an IPv6 only subnet. *

* * @return Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this * Availability Zone, you must delete it before you can create an IPv6 only subnet. */ public Boolean getIpv6Native() { return this.ipv6Native; } /** *

* Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this Availability Zone, * you must delete it before you can create an IPv6 only subnet. *

* * @param ipv6Native * Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this * Availability Zone, you must delete it before you can create an IPv6 only subnet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDefaultSubnetRequest withIpv6Native(Boolean ipv6Native) { setIpv6Native(ipv6Native); return this; } /** *

* Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this Availability Zone, * you must delete it before you can create an IPv6 only subnet. *

* * @return Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this * Availability Zone, you must delete it before you can create an IPv6 only subnet. */ public Boolean isIpv6Native() { return this.ipv6Native; } /** * This method is intended for internal use only. Returns the marshaled request configured with additional * parameters to enable operation dry-run. */ @Override public Request getDryRunRequest() { Request request = new CreateDefaultSubnetRequestMarshaller().marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; } /** * 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 (getAvailabilityZone() != null) sb.append("AvailabilityZone: ").append(getAvailabilityZone()).append(","); if (getIpv6Native() != null) sb.append("Ipv6Native: ").append(getIpv6Native()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateDefaultSubnetRequest == false) return false; CreateDefaultSubnetRequest other = (CreateDefaultSubnetRequest) obj; if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == null) return false; if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == false) return false; if (other.getIpv6Native() == null ^ this.getIpv6Native() == null) return false; if (other.getIpv6Native() != null && other.getIpv6Native().equals(this.getIpv6Native()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode()); hashCode = prime * hashCode + ((getIpv6Native() == null) ? 0 : getIpv6Native().hashCode()); return hashCode; } @Override public CreateDefaultSubnetRequest clone() { return (CreateDefaultSubnetRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy