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

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

/*
 * Copyright 2019-2024 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 identifies a hosted zone that a specified Amazon VPC is associated with and the owner of the * hosted zone. If there is a value for OwningAccount, there is no value for OwningService, * and vice versa. *

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

* If the hosted zone was created by an Amazon Web Services account, or was created by an Amazon Web Services * service that creates hosted zones using the current account, OwningAccount contains the account ID * of that account. For example, when you use Cloud Map to create a hosted zone, Cloud Map creates the hosted zone * using the current Amazon Web Services account. *

*/ private String owningAccount; /** *

* If an Amazon Web Services service uses its own account to create a hosted zone and associate the specified VPC * with that hosted zone, OwningService contains an abbreviation that identifies the service. For * example, if Amazon Elastic File System (Amazon EFS) created a hosted zone and associated a VPC with the hosted * zone, the value of OwningService is efs.amazonaws.com. *

*/ private String owningService; /** *

* If the hosted zone was created by an Amazon Web Services account, or was created by an Amazon Web Services * service that creates hosted zones using the current account, OwningAccount contains the account ID * of that account. For example, when you use Cloud Map to create a hosted zone, Cloud Map creates the hosted zone * using the current Amazon Web Services account. *

* * @param owningAccount * If the hosted zone was created by an Amazon Web Services account, or was created by an Amazon Web Services * service that creates hosted zones using the current account, OwningAccount contains the * account ID of that account. For example, when you use Cloud Map to create a hosted zone, Cloud Map creates * the hosted zone using the current Amazon Web Services account. */ public void setOwningAccount(String owningAccount) { this.owningAccount = owningAccount; } /** *

* If the hosted zone was created by an Amazon Web Services account, or was created by an Amazon Web Services * service that creates hosted zones using the current account, OwningAccount contains the account ID * of that account. For example, when you use Cloud Map to create a hosted zone, Cloud Map creates the hosted zone * using the current Amazon Web Services account. *

* * @return If the hosted zone was created by an Amazon Web Services account, or was created by an Amazon Web * Services service that creates hosted zones using the current account, OwningAccount contains * the account ID of that account. For example, when you use Cloud Map to create a hosted zone, Cloud Map * creates the hosted zone using the current Amazon Web Services account. */ public String getOwningAccount() { return this.owningAccount; } /** *

* If the hosted zone was created by an Amazon Web Services account, or was created by an Amazon Web Services * service that creates hosted zones using the current account, OwningAccount contains the account ID * of that account. For example, when you use Cloud Map to create a hosted zone, Cloud Map creates the hosted zone * using the current Amazon Web Services account. *

* * @param owningAccount * If the hosted zone was created by an Amazon Web Services account, or was created by an Amazon Web Services * service that creates hosted zones using the current account, OwningAccount contains the * account ID of that account. For example, when you use Cloud Map to create a hosted zone, Cloud Map creates * the hosted zone using the current Amazon Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public HostedZoneOwner withOwningAccount(String owningAccount) { setOwningAccount(owningAccount); return this; } /** *

* If an Amazon Web Services service uses its own account to create a hosted zone and associate the specified VPC * with that hosted zone, OwningService contains an abbreviation that identifies the service. For * example, if Amazon Elastic File System (Amazon EFS) created a hosted zone and associated a VPC with the hosted * zone, the value of OwningService is efs.amazonaws.com. *

* * @param owningService * If an Amazon Web Services service uses its own account to create a hosted zone and associate the specified * VPC with that hosted zone, OwningService contains an abbreviation that identifies the * service. For example, if Amazon Elastic File System (Amazon EFS) created a hosted zone and associated a * VPC with the hosted zone, the value of OwningService is efs.amazonaws.com. */ public void setOwningService(String owningService) { this.owningService = owningService; } /** *

* If an Amazon Web Services service uses its own account to create a hosted zone and associate the specified VPC * with that hosted zone, OwningService contains an abbreviation that identifies the service. For * example, if Amazon Elastic File System (Amazon EFS) created a hosted zone and associated a VPC with the hosted * zone, the value of OwningService is efs.amazonaws.com. *

* * @return If an Amazon Web Services service uses its own account to create a hosted zone and associate the * specified VPC with that hosted zone, OwningService contains an abbreviation that identifies * the service. For example, if Amazon Elastic File System (Amazon EFS) created a hosted zone and associated * a VPC with the hosted zone, the value of OwningService is efs.amazonaws.com. */ public String getOwningService() { return this.owningService; } /** *

* If an Amazon Web Services service uses its own account to create a hosted zone and associate the specified VPC * with that hosted zone, OwningService contains an abbreviation that identifies the service. For * example, if Amazon Elastic File System (Amazon EFS) created a hosted zone and associated a VPC with the hosted * zone, the value of OwningService is efs.amazonaws.com. *

* * @param owningService * If an Amazon Web Services service uses its own account to create a hosted zone and associate the specified * VPC with that hosted zone, OwningService contains an abbreviation that identifies the * service. For example, if Amazon Elastic File System (Amazon EFS) created a hosted zone and associated a * VPC with the hosted zone, the value of OwningService is efs.amazonaws.com. * @return Returns a reference to this object so that method calls can be chained together. */ public HostedZoneOwner withOwningService(String owningService) { setOwningService(owningService); 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 (getOwningAccount() != null) sb.append("OwningAccount: ").append(getOwningAccount()).append(","); if (getOwningService() != null) sb.append("OwningService: ").append(getOwningService()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof HostedZoneOwner == false) return false; HostedZoneOwner other = (HostedZoneOwner) obj; if (other.getOwningAccount() == null ^ this.getOwningAccount() == null) return false; if (other.getOwningAccount() != null && other.getOwningAccount().equals(this.getOwningAccount()) == false) return false; if (other.getOwningService() == null ^ this.getOwningService() == null) return false; if (other.getOwningService() != null && other.getOwningService().equals(this.getOwningService()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOwningAccount() == null) ? 0 : getOwningAccount().hashCode()); hashCode = prime * hashCode + ((getOwningService() == null) ? 0 : getOwningService().hashCode()); return hashCode; } @Override public HostedZoneOwner clone() { try { return (HostedZoneOwner) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy