com.amazonaws.services.securityhub.model.AwsElbLoadBalancerDetails Maven / Gradle / Ivy
Show all versions of aws-java-sdk-securityhub Show documentation
/*
* Copyright 2016-2021 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.securityhub.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Contains details about a Classic Load Balancer.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AwsElbLoadBalancerDetails implements Serializable, Cloneable, StructuredPojo {
/**
*
* The list of Availability Zones for the load balancer.
*
*/
private java.util.List availabilityZones;
/**
*
* Information about the configuration of the EC2 instances.
*
*/
private java.util.List backendServerDescriptions;
/**
*
* The name of the Amazon Route 53 hosted zone for the load balancer.
*
*/
private String canonicalHostedZoneName;
/**
*
* The ID of the Amazon Route 53 hosted zone for the load balancer.
*
*/
private String canonicalHostedZoneNameID;
/**
*
* Indicates when the load balancer was created.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z
.
*
*/
private String createdTime;
/**
*
* The DNS name of the load balancer.
*
*/
private String dnsName;
/**
*
* Information about the health checks that are conducted on the load balancer.
*
*/
private AwsElbLoadBalancerHealthCheck healthCheck;
/**
*
* List of EC2 instances for the load balancer.
*
*/
private java.util.List instances;
/**
*
* The policies that are enabled for the load balancer listeners.
*
*/
private java.util.List listenerDescriptions;
/**
*
* The attributes for a load balancer.
*
*/
private AwsElbLoadBalancerAttributes loadBalancerAttributes;
/**
*
* The name of the load balancer.
*
*/
private String loadBalancerName;
/**
*
* The policies for a load balancer.
*
*/
private AwsElbLoadBalancerPolicies policies;
/**
*
* The type of load balancer. Only provided if the load balancer is in a VPC.
*
*
* If Scheme
is internet-facing
, the load balancer has a public DNS name that resolves to
* a public IP address.
*
*
* If Scheme
is internal
, the load balancer has a public DNS name that resolves to a
* private IP address.
*
*/
private String scheme;
/**
*
* The security groups for the load balancer. Only provided if the load balancer is in a VPC.
*
*/
private java.util.List securityGroups;
/**
*
* Information about the security group for the load balancer. This is the security group that is used for inbound
* rules.
*
*/
private AwsElbLoadBalancerSourceSecurityGroup sourceSecurityGroup;
/**
*
* The list of subnet identifiers for the load balancer.
*
*/
private java.util.List subnets;
/**
*
* The identifier of the VPC for the load balancer.
*
*/
private String vpcId;
/**
*
* The list of Availability Zones for the load balancer.
*
*
* @return The list of Availability Zones for the load balancer.
*/
public java.util.List getAvailabilityZones() {
return availabilityZones;
}
/**
*
* The list of Availability Zones for the load balancer.
*
*
* @param availabilityZones
* The list of Availability Zones for the load balancer.
*/
public void setAvailabilityZones(java.util.Collection availabilityZones) {
if (availabilityZones == null) {
this.availabilityZones = null;
return;
}
this.availabilityZones = new java.util.ArrayList(availabilityZones);
}
/**
*
* The list of Availability Zones for the load balancer.
*
*
* 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 list of Availability Zones for the load balancer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withAvailabilityZones(String... availabilityZones) {
if (this.availabilityZones == null) {
setAvailabilityZones(new java.util.ArrayList(availabilityZones.length));
}
for (String ele : availabilityZones) {
this.availabilityZones.add(ele);
}
return this;
}
/**
*
* The list of Availability Zones for the load balancer.
*
*
* @param availabilityZones
* The list of Availability Zones for the load balancer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withAvailabilityZones(java.util.Collection availabilityZones) {
setAvailabilityZones(availabilityZones);
return this;
}
/**
*
* Information about the configuration of the EC2 instances.
*
*
* @return Information about the configuration of the EC2 instances.
*/
public java.util.List getBackendServerDescriptions() {
return backendServerDescriptions;
}
/**
*
* Information about the configuration of the EC2 instances.
*
*
* @param backendServerDescriptions
* Information about the configuration of the EC2 instances.
*/
public void setBackendServerDescriptions(java.util.Collection backendServerDescriptions) {
if (backendServerDescriptions == null) {
this.backendServerDescriptions = null;
return;
}
this.backendServerDescriptions = new java.util.ArrayList(backendServerDescriptions);
}
/**
*
* Information about the configuration of the EC2 instances.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setBackendServerDescriptions(java.util.Collection)} or
* {@link #withBackendServerDescriptions(java.util.Collection)} if you want to override the existing values.
*
*
* @param backendServerDescriptions
* Information about the configuration of the EC2 instances.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withBackendServerDescriptions(AwsElbLoadBalancerBackendServerDescription... backendServerDescriptions) {
if (this.backendServerDescriptions == null) {
setBackendServerDescriptions(new java.util.ArrayList(backendServerDescriptions.length));
}
for (AwsElbLoadBalancerBackendServerDescription ele : backendServerDescriptions) {
this.backendServerDescriptions.add(ele);
}
return this;
}
/**
*
* Information about the configuration of the EC2 instances.
*
*
* @param backendServerDescriptions
* Information about the configuration of the EC2 instances.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withBackendServerDescriptions(java.util.Collection backendServerDescriptions) {
setBackendServerDescriptions(backendServerDescriptions);
return this;
}
/**
*
* The name of the Amazon Route 53 hosted zone for the load balancer.
*
*
* @param canonicalHostedZoneName
* The name of the Amazon Route 53 hosted zone for the load balancer.
*/
public void setCanonicalHostedZoneName(String canonicalHostedZoneName) {
this.canonicalHostedZoneName = canonicalHostedZoneName;
}
/**
*
* The name of the Amazon Route 53 hosted zone for the load balancer.
*
*
* @return The name of the Amazon Route 53 hosted zone for the load balancer.
*/
public String getCanonicalHostedZoneName() {
return this.canonicalHostedZoneName;
}
/**
*
* The name of the Amazon Route 53 hosted zone for the load balancer.
*
*
* @param canonicalHostedZoneName
* The name of the Amazon Route 53 hosted zone for the load balancer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withCanonicalHostedZoneName(String canonicalHostedZoneName) {
setCanonicalHostedZoneName(canonicalHostedZoneName);
return this;
}
/**
*
* The ID of the Amazon Route 53 hosted zone for the load balancer.
*
*
* @param canonicalHostedZoneNameID
* The ID of the Amazon Route 53 hosted zone for the load balancer.
*/
public void setCanonicalHostedZoneNameID(String canonicalHostedZoneNameID) {
this.canonicalHostedZoneNameID = canonicalHostedZoneNameID;
}
/**
*
* The ID of the Amazon Route 53 hosted zone for the load balancer.
*
*
* @return The ID of the Amazon Route 53 hosted zone for the load balancer.
*/
public String getCanonicalHostedZoneNameID() {
return this.canonicalHostedZoneNameID;
}
/**
*
* The ID of the Amazon Route 53 hosted zone for the load balancer.
*
*
* @param canonicalHostedZoneNameID
* The ID of the Amazon Route 53 hosted zone for the load balancer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withCanonicalHostedZoneNameID(String canonicalHostedZoneNameID) {
setCanonicalHostedZoneNameID(canonicalHostedZoneNameID);
return this;
}
/**
*
* Indicates when the load balancer was created.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z
.
*
*
* @param createdTime
* Indicates when the load balancer was created.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
*/
public void setCreatedTime(String createdTime) {
this.createdTime = createdTime;
}
/**
*
* Indicates when the load balancer was created.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z
.
*
*
* @return Indicates when the load balancer was created.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
*/
public String getCreatedTime() {
return this.createdTime;
}
/**
*
* Indicates when the load balancer was created.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z
.
*
*
* @param createdTime
* Indicates when the load balancer was created.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withCreatedTime(String createdTime) {
setCreatedTime(createdTime);
return this;
}
/**
*
* The DNS name of the load balancer.
*
*
* @param dnsName
* The DNS name of the load balancer.
*/
public void setDnsName(String dnsName) {
this.dnsName = dnsName;
}
/**
*
* The DNS name of the load balancer.
*
*
* @return The DNS name of the load balancer.
*/
public String getDnsName() {
return this.dnsName;
}
/**
*
* The DNS name of the load balancer.
*
*
* @param dnsName
* The DNS name of the load balancer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withDnsName(String dnsName) {
setDnsName(dnsName);
return this;
}
/**
*
* Information about the health checks that are conducted on the load balancer.
*
*
* @param healthCheck
* Information about the health checks that are conducted on the load balancer.
*/
public void setHealthCheck(AwsElbLoadBalancerHealthCheck healthCheck) {
this.healthCheck = healthCheck;
}
/**
*
* Information about the health checks that are conducted on the load balancer.
*
*
* @return Information about the health checks that are conducted on the load balancer.
*/
public AwsElbLoadBalancerHealthCheck getHealthCheck() {
return this.healthCheck;
}
/**
*
* Information about the health checks that are conducted on the load balancer.
*
*
* @param healthCheck
* Information about the health checks that are conducted on the load balancer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withHealthCheck(AwsElbLoadBalancerHealthCheck healthCheck) {
setHealthCheck(healthCheck);
return this;
}
/**
*
* List of EC2 instances for the load balancer.
*
*
* @return List of EC2 instances for the load balancer.
*/
public java.util.List getInstances() {
return instances;
}
/**
*
* List of EC2 instances for the load balancer.
*
*
* @param instances
* List of EC2 instances for the load balancer.
*/
public void setInstances(java.util.Collection instances) {
if (instances == null) {
this.instances = null;
return;
}
this.instances = new java.util.ArrayList(instances);
}
/**
*
* List of EC2 instances for the load balancer.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setInstances(java.util.Collection)} or {@link #withInstances(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param instances
* List of EC2 instances for the load balancer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withInstances(AwsElbLoadBalancerInstance... instances) {
if (this.instances == null) {
setInstances(new java.util.ArrayList(instances.length));
}
for (AwsElbLoadBalancerInstance ele : instances) {
this.instances.add(ele);
}
return this;
}
/**
*
* List of EC2 instances for the load balancer.
*
*
* @param instances
* List of EC2 instances for the load balancer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withInstances(java.util.Collection instances) {
setInstances(instances);
return this;
}
/**
*
* The policies that are enabled for the load balancer listeners.
*
*
* @return The policies that are enabled for the load balancer listeners.
*/
public java.util.List getListenerDescriptions() {
return listenerDescriptions;
}
/**
*
* The policies that are enabled for the load balancer listeners.
*
*
* @param listenerDescriptions
* The policies that are enabled for the load balancer listeners.
*/
public void setListenerDescriptions(java.util.Collection listenerDescriptions) {
if (listenerDescriptions == null) {
this.listenerDescriptions = null;
return;
}
this.listenerDescriptions = new java.util.ArrayList(listenerDescriptions);
}
/**
*
* The policies that are enabled for the load balancer listeners.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setListenerDescriptions(java.util.Collection)} or {@link #withListenerDescriptions(java.util.Collection)}
* if you want to override the existing values.
*
*
* @param listenerDescriptions
* The policies that are enabled for the load balancer listeners.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withListenerDescriptions(AwsElbLoadBalancerListenerDescription... listenerDescriptions) {
if (this.listenerDescriptions == null) {
setListenerDescriptions(new java.util.ArrayList(listenerDescriptions.length));
}
for (AwsElbLoadBalancerListenerDescription ele : listenerDescriptions) {
this.listenerDescriptions.add(ele);
}
return this;
}
/**
*
* The policies that are enabled for the load balancer listeners.
*
*
* @param listenerDescriptions
* The policies that are enabled for the load balancer listeners.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withListenerDescriptions(java.util.Collection listenerDescriptions) {
setListenerDescriptions(listenerDescriptions);
return this;
}
/**
*
* The attributes for a load balancer.
*
*
* @param loadBalancerAttributes
* The attributes for a load balancer.
*/
public void setLoadBalancerAttributes(AwsElbLoadBalancerAttributes loadBalancerAttributes) {
this.loadBalancerAttributes = loadBalancerAttributes;
}
/**
*
* The attributes for a load balancer.
*
*
* @return The attributes for a load balancer.
*/
public AwsElbLoadBalancerAttributes getLoadBalancerAttributes() {
return this.loadBalancerAttributes;
}
/**
*
* The attributes for a load balancer.
*
*
* @param loadBalancerAttributes
* The attributes for a load balancer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withLoadBalancerAttributes(AwsElbLoadBalancerAttributes loadBalancerAttributes) {
setLoadBalancerAttributes(loadBalancerAttributes);
return this;
}
/**
*
* The name of the load balancer.
*
*
* @param loadBalancerName
* The name of the load balancer.
*/
public void setLoadBalancerName(String loadBalancerName) {
this.loadBalancerName = loadBalancerName;
}
/**
*
* The name of the load balancer.
*
*
* @return The name of the load balancer.
*/
public String getLoadBalancerName() {
return this.loadBalancerName;
}
/**
*
* The name of the load balancer.
*
*
* @param loadBalancerName
* The name of the load balancer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withLoadBalancerName(String loadBalancerName) {
setLoadBalancerName(loadBalancerName);
return this;
}
/**
*
* The policies for a load balancer.
*
*
* @param policies
* The policies for a load balancer.
*/
public void setPolicies(AwsElbLoadBalancerPolicies policies) {
this.policies = policies;
}
/**
*
* The policies for a load balancer.
*
*
* @return The policies for a load balancer.
*/
public AwsElbLoadBalancerPolicies getPolicies() {
return this.policies;
}
/**
*
* The policies for a load balancer.
*
*
* @param policies
* The policies for a load balancer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withPolicies(AwsElbLoadBalancerPolicies policies) {
setPolicies(policies);
return this;
}
/**
*
* The type of load balancer. Only provided if the load balancer is in a VPC.
*
*
* If Scheme
is internet-facing
, the load balancer has a public DNS name that resolves to
* a public IP address.
*
*
* If Scheme
is internal
, the load balancer has a public DNS name that resolves to a
* private IP address.
*
*
* @param scheme
* The type of load balancer. Only provided if the load balancer is in a VPC.
*
* If Scheme
is internet-facing
, the load balancer has a public DNS name that
* resolves to a public IP address.
*
*
* If Scheme
is internal
, the load balancer has a public DNS name that resolves to
* a private IP address.
*/
public void setScheme(String scheme) {
this.scheme = scheme;
}
/**
*
* The type of load balancer. Only provided if the load balancer is in a VPC.
*
*
* If Scheme
is internet-facing
, the load balancer has a public DNS name that resolves to
* a public IP address.
*
*
* If Scheme
is internal
, the load balancer has a public DNS name that resolves to a
* private IP address.
*
*
* @return The type of load balancer. Only provided if the load balancer is in a VPC.
*
* If Scheme
is internet-facing
, the load balancer has a public DNS name that
* resolves to a public IP address.
*
*
* If Scheme
is internal
, the load balancer has a public DNS name that resolves to
* a private IP address.
*/
public String getScheme() {
return this.scheme;
}
/**
*
* The type of load balancer. Only provided if the load balancer is in a VPC.
*
*
* If Scheme
is internet-facing
, the load balancer has a public DNS name that resolves to
* a public IP address.
*
*
* If Scheme
is internal
, the load balancer has a public DNS name that resolves to a
* private IP address.
*
*
* @param scheme
* The type of load balancer. Only provided if the load balancer is in a VPC.
*
* If Scheme
is internet-facing
, the load balancer has a public DNS name that
* resolves to a public IP address.
*
*
* If Scheme
is internal
, the load balancer has a public DNS name that resolves to
* a private IP address.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withScheme(String scheme) {
setScheme(scheme);
return this;
}
/**
*
* The security groups for the load balancer. Only provided if the load balancer is in a VPC.
*
*
* @return The security groups for the load balancer. Only provided if the load balancer is in a VPC.
*/
public java.util.List getSecurityGroups() {
return securityGroups;
}
/**
*
* The security groups for the load balancer. Only provided if the load balancer is in a VPC.
*
*
* @param securityGroups
* The security groups for the load balancer. Only provided if the load balancer is in a VPC.
*/
public void setSecurityGroups(java.util.Collection securityGroups) {
if (securityGroups == null) {
this.securityGroups = null;
return;
}
this.securityGroups = new java.util.ArrayList(securityGroups);
}
/**
*
* The security groups for the load balancer. Only provided if the load balancer is in a VPC.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSecurityGroups(java.util.Collection)} or {@link #withSecurityGroups(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param securityGroups
* The security groups for the load balancer. Only provided if the load balancer is in a VPC.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withSecurityGroups(String... securityGroups) {
if (this.securityGroups == null) {
setSecurityGroups(new java.util.ArrayList(securityGroups.length));
}
for (String ele : securityGroups) {
this.securityGroups.add(ele);
}
return this;
}
/**
*
* The security groups for the load balancer. Only provided if the load balancer is in a VPC.
*
*
* @param securityGroups
* The security groups for the load balancer. Only provided if the load balancer is in a VPC.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withSecurityGroups(java.util.Collection securityGroups) {
setSecurityGroups(securityGroups);
return this;
}
/**
*
* Information about the security group for the load balancer. This is the security group that is used for inbound
* rules.
*
*
* @param sourceSecurityGroup
* Information about the security group for the load balancer. This is the security group that is used for
* inbound rules.
*/
public void setSourceSecurityGroup(AwsElbLoadBalancerSourceSecurityGroup sourceSecurityGroup) {
this.sourceSecurityGroup = sourceSecurityGroup;
}
/**
*
* Information about the security group for the load balancer. This is the security group that is used for inbound
* rules.
*
*
* @return Information about the security group for the load balancer. This is the security group that is used for
* inbound rules.
*/
public AwsElbLoadBalancerSourceSecurityGroup getSourceSecurityGroup() {
return this.sourceSecurityGroup;
}
/**
*
* Information about the security group for the load balancer. This is the security group that is used for inbound
* rules.
*
*
* @param sourceSecurityGroup
* Information about the security group for the load balancer. This is the security group that is used for
* inbound rules.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withSourceSecurityGroup(AwsElbLoadBalancerSourceSecurityGroup sourceSecurityGroup) {
setSourceSecurityGroup(sourceSecurityGroup);
return this;
}
/**
*
* The list of subnet identifiers for the load balancer.
*
*
* @return The list of subnet identifiers for the load balancer.
*/
public java.util.List getSubnets() {
return subnets;
}
/**
*
* The list of subnet identifiers for the load balancer.
*
*
* @param subnets
* The list of subnet identifiers for the load balancer.
*/
public void setSubnets(java.util.Collection subnets) {
if (subnets == null) {
this.subnets = null;
return;
}
this.subnets = new java.util.ArrayList(subnets);
}
/**
*
* The list of subnet identifiers for the load balancer.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSubnets(java.util.Collection)} or {@link #withSubnets(java.util.Collection)} if you want to override
* the existing values.
*
*
* @param subnets
* The list of subnet identifiers for the load balancer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withSubnets(String... subnets) {
if (this.subnets == null) {
setSubnets(new java.util.ArrayList(subnets.length));
}
for (String ele : subnets) {
this.subnets.add(ele);
}
return this;
}
/**
*
* The list of subnet identifiers for the load balancer.
*
*
* @param subnets
* The list of subnet identifiers for the load balancer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withSubnets(java.util.Collection subnets) {
setSubnets(subnets);
return this;
}
/**
*
* The identifier of the VPC for the load balancer.
*
*
* @param vpcId
* The identifier of the VPC for the load balancer.
*/
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
}
/**
*
* The identifier of the VPC for the load balancer.
*
*
* @return The identifier of the VPC for the load balancer.
*/
public String getVpcId() {
return this.vpcId;
}
/**
*
* The identifier of the VPC for the load balancer.
*
*
* @param vpcId
* The identifier of the VPC for the load balancer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerDetails withVpcId(String vpcId) {
setVpcId(vpcId);
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 (getAvailabilityZones() != null)
sb.append("AvailabilityZones: ").append(getAvailabilityZones()).append(",");
if (getBackendServerDescriptions() != null)
sb.append("BackendServerDescriptions: ").append(getBackendServerDescriptions()).append(",");
if (getCanonicalHostedZoneName() != null)
sb.append("CanonicalHostedZoneName: ").append(getCanonicalHostedZoneName()).append(",");
if (getCanonicalHostedZoneNameID() != null)
sb.append("CanonicalHostedZoneNameID: ").append(getCanonicalHostedZoneNameID()).append(",");
if (getCreatedTime() != null)
sb.append("CreatedTime: ").append(getCreatedTime()).append(",");
if (getDnsName() != null)
sb.append("DnsName: ").append(getDnsName()).append(",");
if (getHealthCheck() != null)
sb.append("HealthCheck: ").append(getHealthCheck()).append(",");
if (getInstances() != null)
sb.append("Instances: ").append(getInstances()).append(",");
if (getListenerDescriptions() != null)
sb.append("ListenerDescriptions: ").append(getListenerDescriptions()).append(",");
if (getLoadBalancerAttributes() != null)
sb.append("LoadBalancerAttributes: ").append(getLoadBalancerAttributes()).append(",");
if (getLoadBalancerName() != null)
sb.append("LoadBalancerName: ").append(getLoadBalancerName()).append(",");
if (getPolicies() != null)
sb.append("Policies: ").append(getPolicies()).append(",");
if (getScheme() != null)
sb.append("Scheme: ").append(getScheme()).append(",");
if (getSecurityGroups() != null)
sb.append("SecurityGroups: ").append(getSecurityGroups()).append(",");
if (getSourceSecurityGroup() != null)
sb.append("SourceSecurityGroup: ").append(getSourceSecurityGroup()).append(",");
if (getSubnets() != null)
sb.append("Subnets: ").append(getSubnets()).append(",");
if (getVpcId() != null)
sb.append("VpcId: ").append(getVpcId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof AwsElbLoadBalancerDetails == false)
return false;
AwsElbLoadBalancerDetails other = (AwsElbLoadBalancerDetails) obj;
if (other.getAvailabilityZones() == null ^ this.getAvailabilityZones() == null)
return false;
if (other.getAvailabilityZones() != null && other.getAvailabilityZones().equals(this.getAvailabilityZones()) == false)
return false;
if (other.getBackendServerDescriptions() == null ^ this.getBackendServerDescriptions() == null)
return false;
if (other.getBackendServerDescriptions() != null && other.getBackendServerDescriptions().equals(this.getBackendServerDescriptions()) == false)
return false;
if (other.getCanonicalHostedZoneName() == null ^ this.getCanonicalHostedZoneName() == null)
return false;
if (other.getCanonicalHostedZoneName() != null && other.getCanonicalHostedZoneName().equals(this.getCanonicalHostedZoneName()) == false)
return false;
if (other.getCanonicalHostedZoneNameID() == null ^ this.getCanonicalHostedZoneNameID() == null)
return false;
if (other.getCanonicalHostedZoneNameID() != null && other.getCanonicalHostedZoneNameID().equals(this.getCanonicalHostedZoneNameID()) == false)
return false;
if (other.getCreatedTime() == null ^ this.getCreatedTime() == null)
return false;
if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false)
return false;
if (other.getDnsName() == null ^ this.getDnsName() == null)
return false;
if (other.getDnsName() != null && other.getDnsName().equals(this.getDnsName()) == false)
return false;
if (other.getHealthCheck() == null ^ this.getHealthCheck() == null)
return false;
if (other.getHealthCheck() != null && other.getHealthCheck().equals(this.getHealthCheck()) == false)
return false;
if (other.getInstances() == null ^ this.getInstances() == null)
return false;
if (other.getInstances() != null && other.getInstances().equals(this.getInstances()) == false)
return false;
if (other.getListenerDescriptions() == null ^ this.getListenerDescriptions() == null)
return false;
if (other.getListenerDescriptions() != null && other.getListenerDescriptions().equals(this.getListenerDescriptions()) == false)
return false;
if (other.getLoadBalancerAttributes() == null ^ this.getLoadBalancerAttributes() == null)
return false;
if (other.getLoadBalancerAttributes() != null && other.getLoadBalancerAttributes().equals(this.getLoadBalancerAttributes()) == false)
return false;
if (other.getLoadBalancerName() == null ^ this.getLoadBalancerName() == null)
return false;
if (other.getLoadBalancerName() != null && other.getLoadBalancerName().equals(this.getLoadBalancerName()) == false)
return false;
if (other.getPolicies() == null ^ this.getPolicies() == null)
return false;
if (other.getPolicies() != null && other.getPolicies().equals(this.getPolicies()) == false)
return false;
if (other.getScheme() == null ^ this.getScheme() == null)
return false;
if (other.getScheme() != null && other.getScheme().equals(this.getScheme()) == false)
return false;
if (other.getSecurityGroups() == null ^ this.getSecurityGroups() == null)
return false;
if (other.getSecurityGroups() != null && other.getSecurityGroups().equals(this.getSecurityGroups()) == false)
return false;
if (other.getSourceSecurityGroup() == null ^ this.getSourceSecurityGroup() == null)
return false;
if (other.getSourceSecurityGroup() != null && other.getSourceSecurityGroup().equals(this.getSourceSecurityGroup()) == false)
return false;
if (other.getSubnets() == null ^ this.getSubnets() == null)
return false;
if (other.getSubnets() != null && other.getSubnets().equals(this.getSubnets()) == false)
return false;
if (other.getVpcId() == null ^ this.getVpcId() == null)
return false;
if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAvailabilityZones() == null) ? 0 : getAvailabilityZones().hashCode());
hashCode = prime * hashCode + ((getBackendServerDescriptions() == null) ? 0 : getBackendServerDescriptions().hashCode());
hashCode = prime * hashCode + ((getCanonicalHostedZoneName() == null) ? 0 : getCanonicalHostedZoneName().hashCode());
hashCode = prime * hashCode + ((getCanonicalHostedZoneNameID() == null) ? 0 : getCanonicalHostedZoneNameID().hashCode());
hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
hashCode = prime * hashCode + ((getDnsName() == null) ? 0 : getDnsName().hashCode());
hashCode = prime * hashCode + ((getHealthCheck() == null) ? 0 : getHealthCheck().hashCode());
hashCode = prime * hashCode + ((getInstances() == null) ? 0 : getInstances().hashCode());
hashCode = prime * hashCode + ((getListenerDescriptions() == null) ? 0 : getListenerDescriptions().hashCode());
hashCode = prime * hashCode + ((getLoadBalancerAttributes() == null) ? 0 : getLoadBalancerAttributes().hashCode());
hashCode = prime * hashCode + ((getLoadBalancerName() == null) ? 0 : getLoadBalancerName().hashCode());
hashCode = prime * hashCode + ((getPolicies() == null) ? 0 : getPolicies().hashCode());
hashCode = prime * hashCode + ((getScheme() == null) ? 0 : getScheme().hashCode());
hashCode = prime * hashCode + ((getSecurityGroups() == null) ? 0 : getSecurityGroups().hashCode());
hashCode = prime * hashCode + ((getSourceSecurityGroup() == null) ? 0 : getSourceSecurityGroup().hashCode());
hashCode = prime * hashCode + ((getSubnets() == null) ? 0 : getSubnets().hashCode());
hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode());
return hashCode;
}
@Override
public AwsElbLoadBalancerDetails clone() {
try {
return (AwsElbLoadBalancerDetails) 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.securityhub.model.transform.AwsElbLoadBalancerDetailsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}