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

com.amazonaws.services.route53.model.HostedZoneSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Route53 module holds the client classes that are used for communicating with Amazon Route53 Service

The newest version!
/*
 * Copyright 2020-2025 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;

/**
 * 

* In the response to a ListHostedZonesByVPC request, the HostedZoneSummaries element contains * one HostedZoneSummary element for each hosted zone that the specified Amazon VPC is associated with. * Each HostedZoneSummary element contains the hosted zone name and ID, and information about who owns the * hosted zone. *

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

* The Route 53 hosted zone ID of a private hosted zone that the specified VPC is associated with. *

*/ private String hostedZoneId; /** *

* The name of the private hosted zone, such as example.com. *

*/ private String name; /** *

* The owner of a private hosted zone that the specified VPC is associated with. The owner can be either an Amazon * Web Services account or an Amazon Web Services service. *

*/ private HostedZoneOwner owner; /** *

* The Route 53 hosted zone ID of a private hosted zone that the specified VPC is associated with. *

* * @param hostedZoneId * The Route 53 hosted zone ID of a private hosted zone that the specified VPC is associated with. */ public void setHostedZoneId(String hostedZoneId) { this.hostedZoneId = hostedZoneId; } /** *

* The Route 53 hosted zone ID of a private hosted zone that the specified VPC is associated with. *

* * @return The Route 53 hosted zone ID of a private hosted zone that the specified VPC is associated with. */ public String getHostedZoneId() { return this.hostedZoneId; } /** *

* The Route 53 hosted zone ID of a private hosted zone that the specified VPC is associated with. *

* * @param hostedZoneId * The Route 53 hosted zone ID of a private hosted zone that the specified VPC is associated with. * @return Returns a reference to this object so that method calls can be chained together. */ public HostedZoneSummary withHostedZoneId(String hostedZoneId) { setHostedZoneId(hostedZoneId); return this; } /** *

* The name of the private hosted zone, such as example.com. *

* * @param name * The name of the private hosted zone, such as example.com. */ public void setName(String name) { this.name = name; } /** *

* The name of the private hosted zone, such as example.com. *

* * @return The name of the private hosted zone, such as example.com. */ public String getName() { return this.name; } /** *

* The name of the private hosted zone, such as example.com. *

* * @param name * The name of the private hosted zone, such as example.com. * @return Returns a reference to this object so that method calls can be chained together. */ public HostedZoneSummary withName(String name) { setName(name); return this; } /** *

* The owner of a private hosted zone that the specified VPC is associated with. The owner can be either an Amazon * Web Services account or an Amazon Web Services service. *

* * @param owner * The owner of a private hosted zone that the specified VPC is associated with. The owner can be either an * Amazon Web Services account or an Amazon Web Services service. */ public void setOwner(HostedZoneOwner owner) { this.owner = owner; } /** *

* The owner of a private hosted zone that the specified VPC is associated with. The owner can be either an Amazon * Web Services account or an Amazon Web Services service. *

* * @return The owner of a private hosted zone that the specified VPC is associated with. The owner can be either an * Amazon Web Services account or an Amazon Web Services service. */ public HostedZoneOwner getOwner() { return this.owner; } /** *

* The owner of a private hosted zone that the specified VPC is associated with. The owner can be either an Amazon * Web Services account or an Amazon Web Services service. *

* * @param owner * The owner of a private hosted zone that the specified VPC is associated with. The owner can be either an * Amazon Web Services account or an Amazon Web Services service. * @return Returns a reference to this object so that method calls can be chained together. */ public HostedZoneSummary withOwner(HostedZoneOwner owner) { setOwner(owner); 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 (getHostedZoneId() != null) sb.append("HostedZoneId: ").append(getHostedZoneId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getOwner() != null) sb.append("Owner: ").append(getOwner()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof HostedZoneSummary == false) return false; HostedZoneSummary other = (HostedZoneSummary) obj; if (other.getHostedZoneId() == null ^ this.getHostedZoneId() == null) return false; if (other.getHostedZoneId() != null && other.getHostedZoneId().equals(this.getHostedZoneId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getOwner() == null ^ this.getOwner() == null) return false; if (other.getOwner() != null && other.getOwner().equals(this.getOwner()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHostedZoneId() == null) ? 0 : getHostedZoneId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getOwner() == null) ? 0 : getOwner().hashCode()); return hashCode; } @Override public HostedZoneSummary clone() { try { return (HostedZoneSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2026 Weber Informatics LLC | Privacy Policy