/* * 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.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about a load balancer. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsElbv2LoadBalancerDetails implements Serializable, Cloneable, StructuredPojo { /** ** The Availability Zones for the load balancer. *
*/ private java.util.List* The ID of the Amazon Route 53 hosted zone associated with the load balancer. *
*/ private String canonicalHostedZoneId; /** ** 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, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
* The public DNS name of the load balancer. *
*/ private String dNSName; /** *
* The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4
* (for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
*
* The nodes of an Internet-facing load balancer have public IP addresses. *
*/ private String scheme; /** ** The IDs of the security groups for the load balancer. *
*/ private java.util.List* The state of the load balancer. *
*/ private LoadBalancerState state; /** ** The type of load balancer. *
*/ private String type; /** ** The ID of the VPC for the load balancer. *
*/ private String vpcId; /** ** Attributes of the load balancer. *
*/ private java.util.List* The Availability Zones for the load balancer. *
* * @return The Availability Zones for the load balancer. */ public java.util.List* The Availability Zones for the load balancer. *
* * @param availabilityZones * The Availability Zones for the load balancer. */ public void setAvailabilityZones(java.util.Collection* The 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 Availability Zones for the load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElbv2LoadBalancerDetails withAvailabilityZones(AvailabilityZone... availabilityZones) { if (this.availabilityZones == null) { setAvailabilityZones(new java.util.ArrayList* The Availability Zones for the load balancer. *
* * @param availabilityZones * The Availability Zones for the load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElbv2LoadBalancerDetails withAvailabilityZones(java.util.Collection* The ID of the Amazon Route 53 hosted zone associated with the load balancer. *
* * @param canonicalHostedZoneId * The ID of the Amazon Route 53 hosted zone associated with the load balancer. */ public void setCanonicalHostedZoneId(String canonicalHostedZoneId) { this.canonicalHostedZoneId = canonicalHostedZoneId; } /** ** The ID of the Amazon Route 53 hosted zone associated with the load balancer. *
* * @return The ID of the Amazon Route 53 hosted zone associated with the load balancer. */ public String getCanonicalHostedZoneId() { return this.canonicalHostedZoneId; } /** ** The ID of the Amazon Route 53 hosted zone associated with the load balancer. *
* * @param canonicalHostedZoneId * The ID of the Amazon Route 53 hosted zone associated with the load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElbv2LoadBalancerDetails withCanonicalHostedZoneId(String canonicalHostedZoneId) { setCanonicalHostedZoneId(canonicalHostedZoneId); 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, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. 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, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. 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, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbv2LoadBalancerDetails withCreatedTime(String createdTime) {
setCreatedTime(createdTime);
return this;
}
/**
*
* The public DNS name of the load balancer. *
* * @param dNSName * The public DNS name of the load balancer. */ public void setDNSName(String dNSName) { this.dNSName = dNSName; } /** ** The public DNS name of the load balancer. *
* * @return The public DNS name of the load balancer. */ public String getDNSName() { return this.dNSName; } /** ** The public DNS name of the load balancer. *
* * @param dNSName * The public DNS name of the load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElbv2LoadBalancerDetails withDNSName(String dNSName) { setDNSName(dNSName); return this; } /** *
* The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4
* (for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
*
ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
*/
public void setIpAddressType(String ipAddressType) {
this.ipAddressType = ipAddressType;
}
/**
*
* The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4
* (for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
*
ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
*/
public String getIpAddressType() {
return this.ipAddressType;
}
/**
*
* The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4
* (for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
*
ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbv2LoadBalancerDetails withIpAddressType(String ipAddressType) {
setIpAddressType(ipAddressType);
return this;
}
/**
* * The nodes of an Internet-facing load balancer have public IP addresses. *
* * @param scheme * The nodes of an Internet-facing load balancer have public IP addresses. */ public void setScheme(String scheme) { this.scheme = scheme; } /** ** The nodes of an Internet-facing load balancer have public IP addresses. *
* * @return The nodes of an Internet-facing load balancer have public IP addresses. */ public String getScheme() { return this.scheme; } /** ** The nodes of an Internet-facing load balancer have public IP addresses. *
* * @param scheme * The nodes of an Internet-facing load balancer have public IP addresses. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElbv2LoadBalancerDetails withScheme(String scheme) { setScheme(scheme); return this; } /** ** The IDs of the security groups for the load balancer. *
* * @return The IDs of the security groups for the load balancer. */ public java.util.List* The IDs of the security groups for the load balancer. *
* * @param securityGroups * The IDs of the security groups for the load balancer. */ public void setSecurityGroups(java.util.Collection* The IDs of the security groups for the load balancer. *
** 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 IDs of the security groups for the load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElbv2LoadBalancerDetails withSecurityGroups(String... securityGroups) { if (this.securityGroups == null) { setSecurityGroups(new java.util.ArrayList* The IDs of the security groups for the load balancer. *
* * @param securityGroups * The IDs of the security groups for the load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElbv2LoadBalancerDetails withSecurityGroups(java.util.Collection* The state of the load balancer. *
* * @param state * The state of the load balancer. */ public void setState(LoadBalancerState state) { this.state = state; } /** ** The state of the load balancer. *
* * @return The state of the load balancer. */ public LoadBalancerState getState() { return this.state; } /** ** The state of the load balancer. *
* * @param state * The state of the load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElbv2LoadBalancerDetails withState(LoadBalancerState state) { setState(state); return this; } /** ** The type of load balancer. *
* * @param type * The type of load balancer. */ public void setType(String type) { this.type = type; } /** ** The type of load balancer. *
* * @return The type of load balancer. */ public String getType() { return this.type; } /** ** The type of load balancer. *
* * @param type * The type of load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElbv2LoadBalancerDetails withType(String type) { setType(type); return this; } /** ** The ID of the VPC for the load balancer. *
* * @param vpcId * The ID of the VPC for the load balancer. */ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** ** The ID of the VPC for the load balancer. *
* * @return The ID of the VPC for the load balancer. */ public String getVpcId() { return this.vpcId; } /** ** The ID of the VPC for the load balancer. *
* * @param vpcId * The ID of the VPC for the load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElbv2LoadBalancerDetails withVpcId(String vpcId) { setVpcId(vpcId); return this; } /** ** Attributes of the load balancer. *
* * @return Attributes of the load balancer. */ public java.util.List* Attributes of the load balancer. *
* * @param loadBalancerAttributes * Attributes of the load balancer. */ public void setLoadBalancerAttributes(java.util.Collection* Attributes of the load balancer. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLoadBalancerAttributes(java.util.Collection)} or * {@link #withLoadBalancerAttributes(java.util.Collection)} if you want to override the existing values. *
* * @param loadBalancerAttributes * Attributes of the load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElbv2LoadBalancerDetails withLoadBalancerAttributes(AwsElbv2LoadBalancerAttribute... loadBalancerAttributes) { if (this.loadBalancerAttributes == null) { setLoadBalancerAttributes(new java.util.ArrayList* Attributes of the load balancer. *
* * @param loadBalancerAttributes * Attributes of the load balancer. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElbv2LoadBalancerDetails withLoadBalancerAttributes(java.util.Collection