/* * 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 an additional detail for a path analysis. For more information, see Reachability Analyzer * additional detail codes. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AdditionalDetail implements Serializable, Cloneable { /** ** The additional detail code. *
*/ private String additionalDetailType; /** ** The path component. *
*/ private AnalysisComponent component; /** ** The VPC endpoint service. *
*/ private AnalysisComponent vpcEndpointService; /** ** The rule options. *
*/ private com.amazonaws.internal.SdkInternalList* The rule group type. *
*/ private com.amazonaws.internal.SdkInternalList* The rule options. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the VPC endpoint service. *
*/ private String serviceName; /** ** The load balancers. *
*/ private com.amazonaws.internal.SdkInternalList* The additional detail code. *
* * @param additionalDetailType * The additional detail code. */ public void setAdditionalDetailType(String additionalDetailType) { this.additionalDetailType = additionalDetailType; } /** ** The additional detail code. *
* * @return The additional detail code. */ public String getAdditionalDetailType() { return this.additionalDetailType; } /** ** The additional detail code. *
* * @param additionalDetailType * The additional detail code. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalDetail withAdditionalDetailType(String additionalDetailType) { setAdditionalDetailType(additionalDetailType); return this; } /** ** The path component. *
* * @param component * The path component. */ public void setComponent(AnalysisComponent component) { this.component = component; } /** ** The path component. *
* * @return The path component. */ public AnalysisComponent getComponent() { return this.component; } /** ** The path component. *
* * @param component * The path component. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalDetail withComponent(AnalysisComponent component) { setComponent(component); return this; } /** ** The VPC endpoint service. *
* * @param vpcEndpointService * The VPC endpoint service. */ public void setVpcEndpointService(AnalysisComponent vpcEndpointService) { this.vpcEndpointService = vpcEndpointService; } /** ** The VPC endpoint service. *
* * @return The VPC endpoint service. */ public AnalysisComponent getVpcEndpointService() { return this.vpcEndpointService; } /** ** The VPC endpoint service. *
* * @param vpcEndpointService * The VPC endpoint service. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalDetail withVpcEndpointService(AnalysisComponent vpcEndpointService) { setVpcEndpointService(vpcEndpointService); return this; } /** ** The rule options. *
* * @return The rule options. */ public java.util.List* The rule options. *
* * @param ruleOptions * The rule options. */ public void setRuleOptions(java.util.Collection* The rule options. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRuleOptions(java.util.Collection)} or {@link #withRuleOptions(java.util.Collection)} if you want to * override the existing values. *
* * @param ruleOptions * The rule options. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalDetail withRuleOptions(RuleOption... ruleOptions) { if (this.ruleOptions == null) { setRuleOptions(new com.amazonaws.internal.SdkInternalList* The rule options. *
* * @param ruleOptions * The rule options. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalDetail withRuleOptions(java.util.Collection* The rule group type. *
* * @return The rule group type. */ public java.util.List* The rule group type. *
* * @param ruleGroupTypePairs * The rule group type. */ public void setRuleGroupTypePairs(java.util.Collection* The rule group type. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRuleGroupTypePairs(java.util.Collection)} or {@link #withRuleGroupTypePairs(java.util.Collection)} if * you want to override the existing values. *
* * @param ruleGroupTypePairs * The rule group type. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalDetail withRuleGroupTypePairs(RuleGroupTypePair... ruleGroupTypePairs) { if (this.ruleGroupTypePairs == null) { setRuleGroupTypePairs(new com.amazonaws.internal.SdkInternalList* The rule group type. *
* * @param ruleGroupTypePairs * The rule group type. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalDetail withRuleGroupTypePairs(java.util.Collection* The rule options. *
* * @return The rule options. */ public java.util.List* The rule options. *
* * @param ruleGroupRuleOptionsPairs * The rule options. */ public void setRuleGroupRuleOptionsPairs(java.util.Collection* The rule options. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRuleGroupRuleOptionsPairs(java.util.Collection)} or * {@link #withRuleGroupRuleOptionsPairs(java.util.Collection)} if you want to override the existing values. *
* * @param ruleGroupRuleOptionsPairs * The rule options. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalDetail withRuleGroupRuleOptionsPairs(RuleGroupRuleOptionsPair... ruleGroupRuleOptionsPairs) { if (this.ruleGroupRuleOptionsPairs == null) { setRuleGroupRuleOptionsPairs(new com.amazonaws.internal.SdkInternalList* The rule options. *
* * @param ruleGroupRuleOptionsPairs * The rule options. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalDetail withRuleGroupRuleOptionsPairs(java.util.Collection* The name of the VPC endpoint service. *
* * @param serviceName * The name of the VPC endpoint service. */ public void setServiceName(String serviceName) { this.serviceName = serviceName; } /** ** The name of the VPC endpoint service. *
* * @return The name of the VPC endpoint service. */ public String getServiceName() { return this.serviceName; } /** ** The name of the VPC endpoint service. *
* * @param serviceName * The name of the VPC endpoint service. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalDetail withServiceName(String serviceName) { setServiceName(serviceName); return this; } /** ** The load balancers. *
* * @return The load balancers. */ public java.util.List* The load balancers. *
* * @param loadBalancers * The load balancers. */ public void setLoadBalancers(java.util.Collection* The load balancers. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLoadBalancers(java.util.Collection)} or {@link #withLoadBalancers(java.util.Collection)} if you want * to override the existing values. *
* * @param loadBalancers * The load balancers. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalDetail withLoadBalancers(AnalysisComponent... loadBalancers) { if (this.loadBalancers == null) { setLoadBalancers(new com.amazonaws.internal.SdkInternalList* The load balancers. *
* * @param loadBalancers * The load balancers. * @return Returns a reference to this object so that method calls can be chained together. */ public AdditionalDetail withLoadBalancers(java.util.Collection