/* * 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.route53.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* A complex type that contain the response to a GetHostedZone
request.
*
* A complex type that contains general information about the specified hosted zone. *
*/ private HostedZone hostedZone; /** ** A complex type that lists the Amazon Route 53 name servers for the specified hosted zone. *
*/ private DelegationSet delegationSet; /** ** A complex type that contains information about the VPCs that are associated with the specified hosted zone. *
*/ private com.amazonaws.internal.SdkInternalList* A complex type that contains general information about the specified hosted zone. *
* * @param hostedZone * A complex type that contains general information about the specified hosted zone. */ public void setHostedZone(HostedZone hostedZone) { this.hostedZone = hostedZone; } /** ** A complex type that contains general information about the specified hosted zone. *
* * @return A complex type that contains general information about the specified hosted zone. */ public HostedZone getHostedZone() { return this.hostedZone; } /** ** A complex type that contains general information about the specified hosted zone. *
* * @param hostedZone * A complex type that contains general information about the specified hosted zone. * @return Returns a reference to this object so that method calls can be chained together. */ public GetHostedZoneResult withHostedZone(HostedZone hostedZone) { setHostedZone(hostedZone); return this; } /** ** A complex type that lists the Amazon Route 53 name servers for the specified hosted zone. *
* * @param delegationSet * A complex type that lists the Amazon Route 53 name servers for the specified hosted zone. */ public void setDelegationSet(DelegationSet delegationSet) { this.delegationSet = delegationSet; } /** ** A complex type that lists the Amazon Route 53 name servers for the specified hosted zone. *
* * @return A complex type that lists the Amazon Route 53 name servers for the specified hosted zone. */ public DelegationSet getDelegationSet() { return this.delegationSet; } /** ** A complex type that lists the Amazon Route 53 name servers for the specified hosted zone. *
* * @param delegationSet * A complex type that lists the Amazon Route 53 name servers for the specified hosted zone. * @return Returns a reference to this object so that method calls can be chained together. */ public GetHostedZoneResult withDelegationSet(DelegationSet delegationSet) { setDelegationSet(delegationSet); return this; } /** ** A complex type that contains information about the VPCs that are associated with the specified hosted zone. *
* * @return A complex type that contains information about the VPCs that are associated with the specified hosted * zone. */ public java.util.List* A complex type that contains information about the VPCs that are associated with the specified hosted zone. *
* * @param vPCs * A complex type that contains information about the VPCs that are associated with the specified hosted * zone. */ public void setVPCs(java.util.Collection* A complex type that contains information about the VPCs that are associated with the specified hosted zone. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVPCs(java.util.Collection)} or {@link #withVPCs(java.util.Collection)} if you want to override the * existing values. *
* * @param vPCs * A complex type that contains information about the VPCs that are associated with the specified hosted * zone. * @return Returns a reference to this object so that method calls can be chained together. */ public GetHostedZoneResult withVPCs(VPC... vPCs) { if (this.vPCs == null) { setVPCs(new com.amazonaws.internal.SdkInternalList* A complex type that contains information about the VPCs that are associated with the specified hosted zone. *
* * @param vPCs * A complex type that contains information about the VPCs that are associated with the specified hosted * zone. * @return Returns a reference to this object so that method calls can be chained together. */ public GetHostedZoneResult withVPCs(java.util.Collection