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

com.amazonaws.services.ec2.model.CreateVpcEndpointServiceConfigurationRequest 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 2018-2023 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.CreateVpcEndpointServiceConfigurationRequestMarshaller;

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

    /**
     * 

* Indicates whether requests from service consumers to create an endpoint to your service must be accepted * manually. *

*/ private Boolean acceptanceRequired; /** *

* (Interface endpoint configuration) The private DNS name to assign to the VPC endpoint service. *

*/ private String privateDnsName; /** *

* The Amazon Resource Names (ARNs) of the Network Load Balancers. *

*/ private com.amazonaws.internal.SdkInternalList networkLoadBalancerArns; /** *

* The Amazon Resource Names (ARNs) of the Gateway Load Balancers. *

*/ private com.amazonaws.internal.SdkInternalList gatewayLoadBalancerArns; /** *

* The supported IP address types. The possible values are ipv4 and ipv6. *

*/ private com.amazonaws.internal.SdkInternalList supportedIpAddressTypes; /** *

* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How * to ensure idempotency. *

*/ private String clientToken; /** *

* The tags to associate with the service. *

*/ private com.amazonaws.internal.SdkInternalList tagSpecifications; /** *

* Indicates whether requests from service consumers to create an endpoint to your service must be accepted * manually. *

* * @param acceptanceRequired * Indicates whether requests from service consumers to create an endpoint to your service must be accepted * manually. */ public void setAcceptanceRequired(Boolean acceptanceRequired) { this.acceptanceRequired = acceptanceRequired; } /** *

* Indicates whether requests from service consumers to create an endpoint to your service must be accepted * manually. *

* * @return Indicates whether requests from service consumers to create an endpoint to your service must be accepted * manually. */ public Boolean getAcceptanceRequired() { return this.acceptanceRequired; } /** *

* Indicates whether requests from service consumers to create an endpoint to your service must be accepted * manually. *

* * @param acceptanceRequired * Indicates whether requests from service consumers to create an endpoint to your service must be accepted * manually. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcEndpointServiceConfigurationRequest withAcceptanceRequired(Boolean acceptanceRequired) { setAcceptanceRequired(acceptanceRequired); return this; } /** *

* Indicates whether requests from service consumers to create an endpoint to your service must be accepted * manually. *

* * @return Indicates whether requests from service consumers to create an endpoint to your service must be accepted * manually. */ public Boolean isAcceptanceRequired() { return this.acceptanceRequired; } /** *

* (Interface endpoint configuration) The private DNS name to assign to the VPC endpoint service. *

* * @param privateDnsName * (Interface endpoint configuration) The private DNS name to assign to the VPC endpoint service. */ public void setPrivateDnsName(String privateDnsName) { this.privateDnsName = privateDnsName; } /** *

* (Interface endpoint configuration) The private DNS name to assign to the VPC endpoint service. *

* * @return (Interface endpoint configuration) The private DNS name to assign to the VPC endpoint service. */ public String getPrivateDnsName() { return this.privateDnsName; } /** *

* (Interface endpoint configuration) The private DNS name to assign to the VPC endpoint service. *

* * @param privateDnsName * (Interface endpoint configuration) The private DNS name to assign to the VPC endpoint service. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcEndpointServiceConfigurationRequest withPrivateDnsName(String privateDnsName) { setPrivateDnsName(privateDnsName); return this; } /** *

* The Amazon Resource Names (ARNs) of the Network Load Balancers. *

* * @return The Amazon Resource Names (ARNs) of the Network Load Balancers. */ public java.util.List getNetworkLoadBalancerArns() { if (networkLoadBalancerArns == null) { networkLoadBalancerArns = new com.amazonaws.internal.SdkInternalList(); } return networkLoadBalancerArns; } /** *

* The Amazon Resource Names (ARNs) of the Network Load Balancers. *

* * @param networkLoadBalancerArns * The Amazon Resource Names (ARNs) of the Network Load Balancers. */ public void setNetworkLoadBalancerArns(java.util.Collection networkLoadBalancerArns) { if (networkLoadBalancerArns == null) { this.networkLoadBalancerArns = null; return; } this.networkLoadBalancerArns = new com.amazonaws.internal.SdkInternalList(networkLoadBalancerArns); } /** *

* The Amazon Resource Names (ARNs) of the Network Load Balancers. *

*

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

* * @param networkLoadBalancerArns * The Amazon Resource Names (ARNs) of the Network Load Balancers. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcEndpointServiceConfigurationRequest withNetworkLoadBalancerArns(String... networkLoadBalancerArns) { if (this.networkLoadBalancerArns == null) { setNetworkLoadBalancerArns(new com.amazonaws.internal.SdkInternalList(networkLoadBalancerArns.length)); } for (String ele : networkLoadBalancerArns) { this.networkLoadBalancerArns.add(ele); } return this; } /** *

* The Amazon Resource Names (ARNs) of the Network Load Balancers. *

* * @param networkLoadBalancerArns * The Amazon Resource Names (ARNs) of the Network Load Balancers. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcEndpointServiceConfigurationRequest withNetworkLoadBalancerArns(java.util.Collection networkLoadBalancerArns) { setNetworkLoadBalancerArns(networkLoadBalancerArns); return this; } /** *

* The Amazon Resource Names (ARNs) of the Gateway Load Balancers. *

* * @return The Amazon Resource Names (ARNs) of the Gateway Load Balancers. */ public java.util.List getGatewayLoadBalancerArns() { if (gatewayLoadBalancerArns == null) { gatewayLoadBalancerArns = new com.amazonaws.internal.SdkInternalList(); } return gatewayLoadBalancerArns; } /** *

* The Amazon Resource Names (ARNs) of the Gateway Load Balancers. *

* * @param gatewayLoadBalancerArns * The Amazon Resource Names (ARNs) of the Gateway Load Balancers. */ public void setGatewayLoadBalancerArns(java.util.Collection gatewayLoadBalancerArns) { if (gatewayLoadBalancerArns == null) { this.gatewayLoadBalancerArns = null; return; } this.gatewayLoadBalancerArns = new com.amazonaws.internal.SdkInternalList(gatewayLoadBalancerArns); } /** *

* The Amazon Resource Names (ARNs) of the Gateway Load Balancers. *

*

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

* * @param gatewayLoadBalancerArns * The Amazon Resource Names (ARNs) of the Gateway Load Balancers. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcEndpointServiceConfigurationRequest withGatewayLoadBalancerArns(String... gatewayLoadBalancerArns) { if (this.gatewayLoadBalancerArns == null) { setGatewayLoadBalancerArns(new com.amazonaws.internal.SdkInternalList(gatewayLoadBalancerArns.length)); } for (String ele : gatewayLoadBalancerArns) { this.gatewayLoadBalancerArns.add(ele); } return this; } /** *

* The Amazon Resource Names (ARNs) of the Gateway Load Balancers. *

* * @param gatewayLoadBalancerArns * The Amazon Resource Names (ARNs) of the Gateway Load Balancers. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcEndpointServiceConfigurationRequest withGatewayLoadBalancerArns(java.util.Collection gatewayLoadBalancerArns) { setGatewayLoadBalancerArns(gatewayLoadBalancerArns); return this; } /** *

* The supported IP address types. The possible values are ipv4 and ipv6. *

* * @return The supported IP address types. The possible values are ipv4 and ipv6. */ public java.util.List getSupportedIpAddressTypes() { if (supportedIpAddressTypes == null) { supportedIpAddressTypes = new com.amazonaws.internal.SdkInternalList(); } return supportedIpAddressTypes; } /** *

* The supported IP address types. The possible values are ipv4 and ipv6. *

* * @param supportedIpAddressTypes * The supported IP address types. The possible values are ipv4 and ipv6. */ public void setSupportedIpAddressTypes(java.util.Collection supportedIpAddressTypes) { if (supportedIpAddressTypes == null) { this.supportedIpAddressTypes = null; return; } this.supportedIpAddressTypes = new com.amazonaws.internal.SdkInternalList(supportedIpAddressTypes); } /** *

* The supported IP address types. The possible values are ipv4 and ipv6. *

*

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

* * @param supportedIpAddressTypes * The supported IP address types. The possible values are ipv4 and ipv6. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcEndpointServiceConfigurationRequest withSupportedIpAddressTypes(String... supportedIpAddressTypes) { if (this.supportedIpAddressTypes == null) { setSupportedIpAddressTypes(new com.amazonaws.internal.SdkInternalList(supportedIpAddressTypes.length)); } for (String ele : supportedIpAddressTypes) { this.supportedIpAddressTypes.add(ele); } return this; } /** *

* The supported IP address types. The possible values are ipv4 and ipv6. *

* * @param supportedIpAddressTypes * The supported IP address types. The possible values are ipv4 and ipv6. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcEndpointServiceConfigurationRequest withSupportedIpAddressTypes(java.util.Collection supportedIpAddressTypes) { setSupportedIpAddressTypes(supportedIpAddressTypes); return this; } /** *

* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How * to ensure idempotency. *

* * @param clientToken * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How to ensure * idempotency. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *

* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How * to ensure idempotency. *

* * @return Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How to ensure * idempotency. */ public String getClientToken() { return this.clientToken; } /** *

* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How * to ensure idempotency. *

* * @param clientToken * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more * information, see How to ensure * idempotency. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcEndpointServiceConfigurationRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** *

* The tags to associate with the service. *

* * @return The tags to associate with the service. */ public java.util.List getTagSpecifications() { if (tagSpecifications == null) { tagSpecifications = new com.amazonaws.internal.SdkInternalList(); } return tagSpecifications; } /** *

* The tags to associate with the service. *

* * @param tagSpecifications * The tags to associate with the service. */ public void setTagSpecifications(java.util.Collection tagSpecifications) { if (tagSpecifications == null) { this.tagSpecifications = null; return; } this.tagSpecifications = new com.amazonaws.internal.SdkInternalList(tagSpecifications); } /** *

* The tags to associate with the service. *

*

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

* * @param tagSpecifications * The tags to associate with the service. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcEndpointServiceConfigurationRequest withTagSpecifications(TagSpecification... tagSpecifications) { if (this.tagSpecifications == null) { setTagSpecifications(new com.amazonaws.internal.SdkInternalList(tagSpecifications.length)); } for (TagSpecification ele : tagSpecifications) { this.tagSpecifications.add(ele); } return this; } /** *

* The tags to associate with the service. *

* * @param tagSpecifications * The tags to associate with the service. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcEndpointServiceConfigurationRequest withTagSpecifications(java.util.Collection tagSpecifications) { setTagSpecifications(tagSpecifications); return this; } /** * 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 CreateVpcEndpointServiceConfigurationRequestMarshaller().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 (getAcceptanceRequired() != null) sb.append("AcceptanceRequired: ").append(getAcceptanceRequired()).append(","); if (getPrivateDnsName() != null) sb.append("PrivateDnsName: ").append(getPrivateDnsName()).append(","); if (getNetworkLoadBalancerArns() != null) sb.append("NetworkLoadBalancerArns: ").append(getNetworkLoadBalancerArns()).append(","); if (getGatewayLoadBalancerArns() != null) sb.append("GatewayLoadBalancerArns: ").append(getGatewayLoadBalancerArns()).append(","); if (getSupportedIpAddressTypes() != null) sb.append("SupportedIpAddressTypes: ").append(getSupportedIpAddressTypes()).append(","); if (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()).append(","); if (getTagSpecifications() != null) sb.append("TagSpecifications: ").append(getTagSpecifications()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateVpcEndpointServiceConfigurationRequest == false) return false; CreateVpcEndpointServiceConfigurationRequest other = (CreateVpcEndpointServiceConfigurationRequest) obj; if (other.getAcceptanceRequired() == null ^ this.getAcceptanceRequired() == null) return false; if (other.getAcceptanceRequired() != null && other.getAcceptanceRequired().equals(this.getAcceptanceRequired()) == false) return false; if (other.getPrivateDnsName() == null ^ this.getPrivateDnsName() == null) return false; if (other.getPrivateDnsName() != null && other.getPrivateDnsName().equals(this.getPrivateDnsName()) == false) return false; if (other.getNetworkLoadBalancerArns() == null ^ this.getNetworkLoadBalancerArns() == null) return false; if (other.getNetworkLoadBalancerArns() != null && other.getNetworkLoadBalancerArns().equals(this.getNetworkLoadBalancerArns()) == false) return false; if (other.getGatewayLoadBalancerArns() == null ^ this.getGatewayLoadBalancerArns() == null) return false; if (other.getGatewayLoadBalancerArns() != null && other.getGatewayLoadBalancerArns().equals(this.getGatewayLoadBalancerArns()) == false) return false; if (other.getSupportedIpAddressTypes() == null ^ this.getSupportedIpAddressTypes() == null) return false; if (other.getSupportedIpAddressTypes() != null && other.getSupportedIpAddressTypes().equals(this.getSupportedIpAddressTypes()) == false) return false; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false) return false; if (other.getTagSpecifications() == null ^ this.getTagSpecifications() == null) return false; if (other.getTagSpecifications() != null && other.getTagSpecifications().equals(this.getTagSpecifications()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAcceptanceRequired() == null) ? 0 : getAcceptanceRequired().hashCode()); hashCode = prime * hashCode + ((getPrivateDnsName() == null) ? 0 : getPrivateDnsName().hashCode()); hashCode = prime * hashCode + ((getNetworkLoadBalancerArns() == null) ? 0 : getNetworkLoadBalancerArns().hashCode()); hashCode = prime * hashCode + ((getGatewayLoadBalancerArns() == null) ? 0 : getGatewayLoadBalancerArns().hashCode()); hashCode = prime * hashCode + ((getSupportedIpAddressTypes() == null) ? 0 : getSupportedIpAddressTypes().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getTagSpecifications() == null) ? 0 : getTagSpecifications().hashCode()); return hashCode; } @Override public CreateVpcEndpointServiceConfigurationRequest clone() { return (CreateVpcEndpointServiceConfigurationRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy