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

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

/**
 * 

* Describes a VPC endpoint service. *

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

* The name of the service. *

*/ private String serviceName; /** *

* The ID of the endpoint service. *

*/ private String serviceId; /** *

* The type of service. *

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

* The Availability Zones in which the service is available. *

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

* The Amazon Web Services account ID of the service owner. *

*/ private String owner; /** *

* The DNS names for the service. *

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

* The private DNS name for the service. *

*/ private String privateDnsName; /** *

* The private DNS names assigned to the VPC endpoint service. *

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

* Indicates whether the service supports endpoint policies. *

*/ private Boolean vpcEndpointPolicySupported; /** *

* Indicates whether VPC endpoint connection requests to the service must be accepted by the service owner. *

*/ private Boolean acceptanceRequired; /** *

* Indicates whether the service manages its VPC endpoints. Management of the service VPC endpoints using the VPC * endpoint API is restricted. *

*/ private Boolean managesVpcEndpoints; /** *

* The payer responsibility. *

*/ private String payerResponsibility; /** *

* The tags assigned to the service. *

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

* The verification state of the VPC endpoint service. *

*

* Consumers of the endpoint service cannot use the private name when the state is not verified. *

*/ private String privateDnsNameVerificationState; /** *

* The supported IP address types. *

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

* The name of the service. *

* * @param serviceName * The name of the service. */ public void setServiceName(String serviceName) { this.serviceName = serviceName; } /** *

* The name of the service. *

* * @return The name of the service. */ public String getServiceName() { return this.serviceName; } /** *

* The name of the service. *

* * @param serviceName * The name of the service. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceDetail withServiceName(String serviceName) { setServiceName(serviceName); return this; } /** *

* The ID of the endpoint service. *

* * @param serviceId * The ID of the endpoint service. */ public void setServiceId(String serviceId) { this.serviceId = serviceId; } /** *

* The ID of the endpoint service. *

* * @return The ID of the endpoint service. */ public String getServiceId() { return this.serviceId; } /** *

* The ID of the endpoint service. *

* * @param serviceId * The ID of the endpoint service. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceDetail withServiceId(String serviceId) { setServiceId(serviceId); return this; } /** *

* The type of service. *

* * @return The type of service. */ public java.util.List getServiceType() { if (serviceType == null) { serviceType = new com.amazonaws.internal.SdkInternalList(); } return serviceType; } /** *

* The type of service. *

* * @param serviceType * The type of service. */ public void setServiceType(java.util.Collection serviceType) { if (serviceType == null) { this.serviceType = null; return; } this.serviceType = new com.amazonaws.internal.SdkInternalList(serviceType); } /** *

* The type of service. *

*

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

* * @param serviceType * The type of service. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceDetail withServiceType(ServiceTypeDetail... serviceType) { if (this.serviceType == null) { setServiceType(new com.amazonaws.internal.SdkInternalList(serviceType.length)); } for (ServiceTypeDetail ele : serviceType) { this.serviceType.add(ele); } return this; } /** *

* The type of service. *

* * @param serviceType * The type of service. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceDetail withServiceType(java.util.Collection serviceType) { setServiceType(serviceType); return this; } /** *

* The Availability Zones in which the service is available. *

* * @return The Availability Zones in which the service is available. */ public java.util.List getAvailabilityZones() { if (availabilityZones == null) { availabilityZones = new com.amazonaws.internal.SdkInternalList(); } return availabilityZones; } /** *

* The Availability Zones in which the service is available. *

* * @param availabilityZones * The Availability Zones in which the service is available. */ public void setAvailabilityZones(java.util.Collection availabilityZones) { if (availabilityZones == null) { this.availabilityZones = null; return; } this.availabilityZones = new com.amazonaws.internal.SdkInternalList(availabilityZones); } /** *

* The Availability Zones in which the service is available. *

*

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

* * @param availabilityZones * The Availability Zones in which the service is available. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceDetail withAvailabilityZones(String... availabilityZones) { if (this.availabilityZones == null) { setAvailabilityZones(new com.amazonaws.internal.SdkInternalList(availabilityZones.length)); } for (String ele : availabilityZones) { this.availabilityZones.add(ele); } return this; } /** *

* The Availability Zones in which the service is available. *

* * @param availabilityZones * The Availability Zones in which the service is available. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceDetail withAvailabilityZones(java.util.Collection availabilityZones) { setAvailabilityZones(availabilityZones); return this; } /** *

* The Amazon Web Services account ID of the service owner. *

* * @param owner * The Amazon Web Services account ID of the service owner. */ public void setOwner(String owner) { this.owner = owner; } /** *

* The Amazon Web Services account ID of the service owner. *

* * @return The Amazon Web Services account ID of the service owner. */ public String getOwner() { return this.owner; } /** *

* The Amazon Web Services account ID of the service owner. *

* * @param owner * The Amazon Web Services account ID of the service owner. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceDetail withOwner(String owner) { setOwner(owner); return this; } /** *

* The DNS names for the service. *

* * @return The DNS names for the service. */ public java.util.List getBaseEndpointDnsNames() { if (baseEndpointDnsNames == null) { baseEndpointDnsNames = new com.amazonaws.internal.SdkInternalList(); } return baseEndpointDnsNames; } /** *

* The DNS names for the service. *

* * @param baseEndpointDnsNames * The DNS names for the service. */ public void setBaseEndpointDnsNames(java.util.Collection baseEndpointDnsNames) { if (baseEndpointDnsNames == null) { this.baseEndpointDnsNames = null; return; } this.baseEndpointDnsNames = new com.amazonaws.internal.SdkInternalList(baseEndpointDnsNames); } /** *

* The DNS names for the service. *

*

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

* * @param baseEndpointDnsNames * The DNS names for the service. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceDetail withBaseEndpointDnsNames(String... baseEndpointDnsNames) { if (this.baseEndpointDnsNames == null) { setBaseEndpointDnsNames(new com.amazonaws.internal.SdkInternalList(baseEndpointDnsNames.length)); } for (String ele : baseEndpointDnsNames) { this.baseEndpointDnsNames.add(ele); } return this; } /** *

* The DNS names for the service. *

* * @param baseEndpointDnsNames * The DNS names for the service. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceDetail withBaseEndpointDnsNames(java.util.Collection baseEndpointDnsNames) { setBaseEndpointDnsNames(baseEndpointDnsNames); return this; } /** *

* The private DNS name for the service. *

* * @param privateDnsName * The private DNS name for the service. */ public void setPrivateDnsName(String privateDnsName) { this.privateDnsName = privateDnsName; } /** *

* The private DNS name for the service. *

* * @return The private DNS name for the service. */ public String getPrivateDnsName() { return this.privateDnsName; } /** *

* The private DNS name for the service. *

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

* The private DNS names assigned to the VPC endpoint service. *

* * @return The private DNS names assigned to the VPC endpoint service. */ public java.util.List getPrivateDnsNames() { if (privateDnsNames == null) { privateDnsNames = new com.amazonaws.internal.SdkInternalList(); } return privateDnsNames; } /** *

* The private DNS names assigned to the VPC endpoint service. *

* * @param privateDnsNames * The private DNS names assigned to the VPC endpoint service. */ public void setPrivateDnsNames(java.util.Collection privateDnsNames) { if (privateDnsNames == null) { this.privateDnsNames = null; return; } this.privateDnsNames = new com.amazonaws.internal.SdkInternalList(privateDnsNames); } /** *

* The private DNS names assigned to the VPC endpoint service. *

*

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

* * @param privateDnsNames * The private DNS names assigned to the VPC endpoint service. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceDetail withPrivateDnsNames(PrivateDnsDetails... privateDnsNames) { if (this.privateDnsNames == null) { setPrivateDnsNames(new com.amazonaws.internal.SdkInternalList(privateDnsNames.length)); } for (PrivateDnsDetails ele : privateDnsNames) { this.privateDnsNames.add(ele); } return this; } /** *

* The private DNS names assigned to the VPC endpoint service. *

* * @param privateDnsNames * The private DNS names assigned to the VPC endpoint service. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceDetail withPrivateDnsNames(java.util.Collection privateDnsNames) { setPrivateDnsNames(privateDnsNames); return this; } /** *

* Indicates whether the service supports endpoint policies. *

* * @param vpcEndpointPolicySupported * Indicates whether the service supports endpoint policies. */ public void setVpcEndpointPolicySupported(Boolean vpcEndpointPolicySupported) { this.vpcEndpointPolicySupported = vpcEndpointPolicySupported; } /** *

* Indicates whether the service supports endpoint policies. *

* * @return Indicates whether the service supports endpoint policies. */ public Boolean getVpcEndpointPolicySupported() { return this.vpcEndpointPolicySupported; } /** *

* Indicates whether the service supports endpoint policies. *

* * @param vpcEndpointPolicySupported * Indicates whether the service supports endpoint policies. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceDetail withVpcEndpointPolicySupported(Boolean vpcEndpointPolicySupported) { setVpcEndpointPolicySupported(vpcEndpointPolicySupported); return this; } /** *

* Indicates whether the service supports endpoint policies. *

* * @return Indicates whether the service supports endpoint policies. */ public Boolean isVpcEndpointPolicySupported() { return this.vpcEndpointPolicySupported; } /** *

* Indicates whether VPC endpoint connection requests to the service must be accepted by the service owner. *

* * @param acceptanceRequired * Indicates whether VPC endpoint connection requests to the service must be accepted by the service owner. */ public void setAcceptanceRequired(Boolean acceptanceRequired) { this.acceptanceRequired = acceptanceRequired; } /** *

* Indicates whether VPC endpoint connection requests to the service must be accepted by the service owner. *

* * @return Indicates whether VPC endpoint connection requests to the service must be accepted by the service owner. */ public Boolean getAcceptanceRequired() { return this.acceptanceRequired; } /** *

* Indicates whether VPC endpoint connection requests to the service must be accepted by the service owner. *

* * @param acceptanceRequired * Indicates whether VPC endpoint connection requests to the service must be accepted by the service owner. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceDetail withAcceptanceRequired(Boolean acceptanceRequired) { setAcceptanceRequired(acceptanceRequired); return this; } /** *

* Indicates whether VPC endpoint connection requests to the service must be accepted by the service owner. *

* * @return Indicates whether VPC endpoint connection requests to the service must be accepted by the service owner. */ public Boolean isAcceptanceRequired() { return this.acceptanceRequired; } /** *

* Indicates whether the service manages its VPC endpoints. Management of the service VPC endpoints using the VPC * endpoint API is restricted. *

* * @param managesVpcEndpoints * Indicates whether the service manages its VPC endpoints. Management of the service VPC endpoints using the * VPC endpoint API is restricted. */ public void setManagesVpcEndpoints(Boolean managesVpcEndpoints) { this.managesVpcEndpoints = managesVpcEndpoints; } /** *

* Indicates whether the service manages its VPC endpoints. Management of the service VPC endpoints using the VPC * endpoint API is restricted. *

* * @return Indicates whether the service manages its VPC endpoints. Management of the service VPC endpoints using * the VPC endpoint API is restricted. */ public Boolean getManagesVpcEndpoints() { return this.managesVpcEndpoints; } /** *

* Indicates whether the service manages its VPC endpoints. Management of the service VPC endpoints using the VPC * endpoint API is restricted. *

* * @param managesVpcEndpoints * Indicates whether the service manages its VPC endpoints. Management of the service VPC endpoints using the * VPC endpoint API is restricted. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceDetail withManagesVpcEndpoints(Boolean managesVpcEndpoints) { setManagesVpcEndpoints(managesVpcEndpoints); return this; } /** *

* Indicates whether the service manages its VPC endpoints. Management of the service VPC endpoints using the VPC * endpoint API is restricted. *

* * @return Indicates whether the service manages its VPC endpoints. Management of the service VPC endpoints using * the VPC endpoint API is restricted. */ public Boolean isManagesVpcEndpoints() { return this.managesVpcEndpoints; } /** *

* The payer responsibility. *

* * @param payerResponsibility * The payer responsibility. * @see PayerResponsibility */ public void setPayerResponsibility(String payerResponsibility) { this.payerResponsibility = payerResponsibility; } /** *

* The payer responsibility. *

* * @return The payer responsibility. * @see PayerResponsibility */ public String getPayerResponsibility() { return this.payerResponsibility; } /** *

* The payer responsibility. *

* * @param payerResponsibility * The payer responsibility. * @return Returns a reference to this object so that method calls can be chained together. * @see PayerResponsibility */ public ServiceDetail withPayerResponsibility(String payerResponsibility) { setPayerResponsibility(payerResponsibility); return this; } /** *

* The payer responsibility. *

* * @param payerResponsibility * The payer responsibility. * @return Returns a reference to this object so that method calls can be chained together. * @see PayerResponsibility */ public ServiceDetail withPayerResponsibility(PayerResponsibility payerResponsibility) { this.payerResponsibility = payerResponsibility.toString(); return this; } /** *

* The tags assigned to the service. *

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

* The tags assigned to the service. *

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

* The tags assigned to the service. *

*

* 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 * The tags assigned to the service. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceDetail withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* The tags assigned to the service. *

* * @param tags * The tags assigned to the service. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceDetail withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

* The verification state of the VPC endpoint service. *

*

* Consumers of the endpoint service cannot use the private name when the state is not verified. *

* * @param privateDnsNameVerificationState * The verification state of the VPC endpoint service.

*

* Consumers of the endpoint service cannot use the private name when the state is not verified. * @see DnsNameState */ public void setPrivateDnsNameVerificationState(String privateDnsNameVerificationState) { this.privateDnsNameVerificationState = privateDnsNameVerificationState; } /** *

* The verification state of the VPC endpoint service. *

*

* Consumers of the endpoint service cannot use the private name when the state is not verified. *

* * @return The verification state of the VPC endpoint service.

*

* Consumers of the endpoint service cannot use the private name when the state is not verified. * @see DnsNameState */ public String getPrivateDnsNameVerificationState() { return this.privateDnsNameVerificationState; } /** *

* The verification state of the VPC endpoint service. *

*

* Consumers of the endpoint service cannot use the private name when the state is not verified. *

* * @param privateDnsNameVerificationState * The verification state of the VPC endpoint service.

*

* Consumers of the endpoint service cannot use the private name when the state is not verified. * @return Returns a reference to this object so that method calls can be chained together. * @see DnsNameState */ public ServiceDetail withPrivateDnsNameVerificationState(String privateDnsNameVerificationState) { setPrivateDnsNameVerificationState(privateDnsNameVerificationState); return this; } /** *

* The verification state of the VPC endpoint service. *

*

* Consumers of the endpoint service cannot use the private name when the state is not verified. *

* * @param privateDnsNameVerificationState * The verification state of the VPC endpoint service.

*

* Consumers of the endpoint service cannot use the private name when the state is not verified. * @return Returns a reference to this object so that method calls can be chained together. * @see DnsNameState */ public ServiceDetail withPrivateDnsNameVerificationState(DnsNameState privateDnsNameVerificationState) { this.privateDnsNameVerificationState = privateDnsNameVerificationState.toString(); return this; } /** *

* The supported IP address types. *

* * @return The supported IP address types. * @see ServiceConnectivityType */ public java.util.List getSupportedIpAddressTypes() { if (supportedIpAddressTypes == null) { supportedIpAddressTypes = new com.amazonaws.internal.SdkInternalList(); } return supportedIpAddressTypes; } /** *

* The supported IP address types. *

* * @param supportedIpAddressTypes * The supported IP address types. * @see ServiceConnectivityType */ 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. *

*

* 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. * @return Returns a reference to this object so that method calls can be chained together. * @see ServiceConnectivityType */ public ServiceDetail 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. *

* * @param supportedIpAddressTypes * The supported IP address types. * @return Returns a reference to this object so that method calls can be chained together. * @see ServiceConnectivityType */ public ServiceDetail withSupportedIpAddressTypes(java.util.Collection supportedIpAddressTypes) { setSupportedIpAddressTypes(supportedIpAddressTypes); return this; } /** *

* The supported IP address types. *

* * @param supportedIpAddressTypes * The supported IP address types. * @return Returns a reference to this object so that method calls can be chained together. * @see ServiceConnectivityType */ public ServiceDetail withSupportedIpAddressTypes(ServiceConnectivityType... supportedIpAddressTypes) { com.amazonaws.internal.SdkInternalList supportedIpAddressTypesCopy = new com.amazonaws.internal.SdkInternalList( supportedIpAddressTypes.length); for (ServiceConnectivityType value : supportedIpAddressTypes) { supportedIpAddressTypesCopy.add(value.toString()); } if (getSupportedIpAddressTypes() == null) { setSupportedIpAddressTypes(supportedIpAddressTypesCopy); } else { getSupportedIpAddressTypes().addAll(supportedIpAddressTypesCopy); } 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 (getServiceName() != null) sb.append("ServiceName: ").append(getServiceName()).append(","); if (getServiceId() != null) sb.append("ServiceId: ").append(getServiceId()).append(","); if (getServiceType() != null) sb.append("ServiceType: ").append(getServiceType()).append(","); if (getAvailabilityZones() != null) sb.append("AvailabilityZones: ").append(getAvailabilityZones()).append(","); if (getOwner() != null) sb.append("Owner: ").append(getOwner()).append(","); if (getBaseEndpointDnsNames() != null) sb.append("BaseEndpointDnsNames: ").append(getBaseEndpointDnsNames()).append(","); if (getPrivateDnsName() != null) sb.append("PrivateDnsName: ").append(getPrivateDnsName()).append(","); if (getPrivateDnsNames() != null) sb.append("PrivateDnsNames: ").append(getPrivateDnsNames()).append(","); if (getVpcEndpointPolicySupported() != null) sb.append("VpcEndpointPolicySupported: ").append(getVpcEndpointPolicySupported()).append(","); if (getAcceptanceRequired() != null) sb.append("AcceptanceRequired: ").append(getAcceptanceRequired()).append(","); if (getManagesVpcEndpoints() != null) sb.append("ManagesVpcEndpoints: ").append(getManagesVpcEndpoints()).append(","); if (getPayerResponsibility() != null) sb.append("PayerResponsibility: ").append(getPayerResponsibility()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getPrivateDnsNameVerificationState() != null) sb.append("PrivateDnsNameVerificationState: ").append(getPrivateDnsNameVerificationState()).append(","); if (getSupportedIpAddressTypes() != null) sb.append("SupportedIpAddressTypes: ").append(getSupportedIpAddressTypes()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ServiceDetail == false) return false; ServiceDetail other = (ServiceDetail) obj; if (other.getServiceName() == null ^ this.getServiceName() == null) return false; if (other.getServiceName() != null && other.getServiceName().equals(this.getServiceName()) == false) return false; if (other.getServiceId() == null ^ this.getServiceId() == null) return false; if (other.getServiceId() != null && other.getServiceId().equals(this.getServiceId()) == false) return false; if (other.getServiceType() == null ^ this.getServiceType() == null) return false; if (other.getServiceType() != null && other.getServiceType().equals(this.getServiceType()) == false) return false; if (other.getAvailabilityZones() == null ^ this.getAvailabilityZones() == null) return false; if (other.getAvailabilityZones() != null && other.getAvailabilityZones().equals(this.getAvailabilityZones()) == false) return false; if (other.getOwner() == null ^ this.getOwner() == null) return false; if (other.getOwner() != null && other.getOwner().equals(this.getOwner()) == false) return false; if (other.getBaseEndpointDnsNames() == null ^ this.getBaseEndpointDnsNames() == null) return false; if (other.getBaseEndpointDnsNames() != null && other.getBaseEndpointDnsNames().equals(this.getBaseEndpointDnsNames()) == 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.getPrivateDnsNames() == null ^ this.getPrivateDnsNames() == null) return false; if (other.getPrivateDnsNames() != null && other.getPrivateDnsNames().equals(this.getPrivateDnsNames()) == false) return false; if (other.getVpcEndpointPolicySupported() == null ^ this.getVpcEndpointPolicySupported() == null) return false; if (other.getVpcEndpointPolicySupported() != null && other.getVpcEndpointPolicySupported().equals(this.getVpcEndpointPolicySupported()) == false) return false; if (other.getAcceptanceRequired() == null ^ this.getAcceptanceRequired() == null) return false; if (other.getAcceptanceRequired() != null && other.getAcceptanceRequired().equals(this.getAcceptanceRequired()) == false) return false; if (other.getManagesVpcEndpoints() == null ^ this.getManagesVpcEndpoints() == null) return false; if (other.getManagesVpcEndpoints() != null && other.getManagesVpcEndpoints().equals(this.getManagesVpcEndpoints()) == false) return false; if (other.getPayerResponsibility() == null ^ this.getPayerResponsibility() == null) return false; if (other.getPayerResponsibility() != null && other.getPayerResponsibility().equals(this.getPayerResponsibility()) == 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.getPrivateDnsNameVerificationState() == null ^ this.getPrivateDnsNameVerificationState() == null) return false; if (other.getPrivateDnsNameVerificationState() != null && other.getPrivateDnsNameVerificationState().equals(this.getPrivateDnsNameVerificationState()) == false) return false; if (other.getSupportedIpAddressTypes() == null ^ this.getSupportedIpAddressTypes() == null) return false; if (other.getSupportedIpAddressTypes() != null && other.getSupportedIpAddressTypes().equals(this.getSupportedIpAddressTypes()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServiceName() == null) ? 0 : getServiceName().hashCode()); hashCode = prime * hashCode + ((getServiceId() == null) ? 0 : getServiceId().hashCode()); hashCode = prime * hashCode + ((getServiceType() == null) ? 0 : getServiceType().hashCode()); hashCode = prime * hashCode + ((getAvailabilityZones() == null) ? 0 : getAvailabilityZones().hashCode()); hashCode = prime * hashCode + ((getOwner() == null) ? 0 : getOwner().hashCode()); hashCode = prime * hashCode + ((getBaseEndpointDnsNames() == null) ? 0 : getBaseEndpointDnsNames().hashCode()); hashCode = prime * hashCode + ((getPrivateDnsName() == null) ? 0 : getPrivateDnsName().hashCode()); hashCode = prime * hashCode + ((getPrivateDnsNames() == null) ? 0 : getPrivateDnsNames().hashCode()); hashCode = prime * hashCode + ((getVpcEndpointPolicySupported() == null) ? 0 : getVpcEndpointPolicySupported().hashCode()); hashCode = prime * hashCode + ((getAcceptanceRequired() == null) ? 0 : getAcceptanceRequired().hashCode()); hashCode = prime * hashCode + ((getManagesVpcEndpoints() == null) ? 0 : getManagesVpcEndpoints().hashCode()); hashCode = prime * hashCode + ((getPayerResponsibility() == null) ? 0 : getPayerResponsibility().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getPrivateDnsNameVerificationState() == null) ? 0 : getPrivateDnsNameVerificationState().hashCode()); hashCode = prime * hashCode + ((getSupportedIpAddressTypes() == null) ? 0 : getSupportedIpAddressTypes().hashCode()); return hashCode; } @Override public ServiceDetail clone() { try { return (ServiceDetail) 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