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

com.amazonaws.services.private5g.model.NetworkSite Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Private 5G module holds the client classes that are used for communicating with AWS Private 5G Service

There is a newer version: 1.12.778
Show newest version
/*
 * 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.private5g.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Information about a network site. *

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

* The parent Availability Zone for the network site. *

*/ private String availabilityZone; /** *

* The parent Availability Zone ID for the network site. *

*/ private String availabilityZoneId; /** *

* The creation time of the network site. *

*/ private java.util.Date createdAt; /** *

* The current plan of the network site. *

*/ private SitePlan currentPlan; /** *

* The description of the network site. *

*/ private String description; /** *

* The Amazon Resource Name (ARN) of the network to which the network site belongs. *

*/ private String networkArn; /** *

* The Amazon Resource Name (ARN) of the network site. *

*/ private String networkSiteArn; /** *

* The name of the network site. *

*/ private String networkSiteName; /** *

* The pending plan of the network site. *

*/ private SitePlan pendingPlan; /** *

* The status of the network site. *

*/ private String status; /** *

* The status reason of the network site. *

*/ private String statusReason; /** *

* The parent Availability Zone for the network site. *

* * @param availabilityZone * The parent Availability Zone for the network site. */ public void setAvailabilityZone(String availabilityZone) { this.availabilityZone = availabilityZone; } /** *

* The parent Availability Zone for the network site. *

* * @return The parent Availability Zone for the network site. */ public String getAvailabilityZone() { return this.availabilityZone; } /** *

* The parent Availability Zone for the network site. *

* * @param availabilityZone * The parent Availability Zone for the network site. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkSite withAvailabilityZone(String availabilityZone) { setAvailabilityZone(availabilityZone); return this; } /** *

* The parent Availability Zone ID for the network site. *

* * @param availabilityZoneId * The parent Availability Zone ID for the network site. */ public void setAvailabilityZoneId(String availabilityZoneId) { this.availabilityZoneId = availabilityZoneId; } /** *

* The parent Availability Zone ID for the network site. *

* * @return The parent Availability Zone ID for the network site. */ public String getAvailabilityZoneId() { return this.availabilityZoneId; } /** *

* The parent Availability Zone ID for the network site. *

* * @param availabilityZoneId * The parent Availability Zone ID for the network site. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkSite withAvailabilityZoneId(String availabilityZoneId) { setAvailabilityZoneId(availabilityZoneId); return this; } /** *

* The creation time of the network site. *

* * @param createdAt * The creation time of the network site. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* The creation time of the network site. *

* * @return The creation time of the network site. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* The creation time of the network site. *

* * @param createdAt * The creation time of the network site. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkSite withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* The current plan of the network site. *

* * @param currentPlan * The current plan of the network site. */ public void setCurrentPlan(SitePlan currentPlan) { this.currentPlan = currentPlan; } /** *

* The current plan of the network site. *

* * @return The current plan of the network site. */ public SitePlan getCurrentPlan() { return this.currentPlan; } /** *

* The current plan of the network site. *

* * @param currentPlan * The current plan of the network site. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkSite withCurrentPlan(SitePlan currentPlan) { setCurrentPlan(currentPlan); return this; } /** *

* The description of the network site. *

* * @param description * The description of the network site. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the network site. *

* * @return The description of the network site. */ public String getDescription() { return this.description; } /** *

* The description of the network site. *

* * @param description * The description of the network site. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkSite withDescription(String description) { setDescription(description); return this; } /** *

* The Amazon Resource Name (ARN) of the network to which the network site belongs. *

* * @param networkArn * The Amazon Resource Name (ARN) of the network to which the network site belongs. */ public void setNetworkArn(String networkArn) { this.networkArn = networkArn; } /** *

* The Amazon Resource Name (ARN) of the network to which the network site belongs. *

* * @return The Amazon Resource Name (ARN) of the network to which the network site belongs. */ public String getNetworkArn() { return this.networkArn; } /** *

* The Amazon Resource Name (ARN) of the network to which the network site belongs. *

* * @param networkArn * The Amazon Resource Name (ARN) of the network to which the network site belongs. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkSite withNetworkArn(String networkArn) { setNetworkArn(networkArn); return this; } /** *

* The Amazon Resource Name (ARN) of the network site. *

* * @param networkSiteArn * The Amazon Resource Name (ARN) of the network site. */ public void setNetworkSiteArn(String networkSiteArn) { this.networkSiteArn = networkSiteArn; } /** *

* The Amazon Resource Name (ARN) of the network site. *

* * @return The Amazon Resource Name (ARN) of the network site. */ public String getNetworkSiteArn() { return this.networkSiteArn; } /** *

* The Amazon Resource Name (ARN) of the network site. *

* * @param networkSiteArn * The Amazon Resource Name (ARN) of the network site. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkSite withNetworkSiteArn(String networkSiteArn) { setNetworkSiteArn(networkSiteArn); return this; } /** *

* The name of the network site. *

* * @param networkSiteName * The name of the network site. */ public void setNetworkSiteName(String networkSiteName) { this.networkSiteName = networkSiteName; } /** *

* The name of the network site. *

* * @return The name of the network site. */ public String getNetworkSiteName() { return this.networkSiteName; } /** *

* The name of the network site. *

* * @param networkSiteName * The name of the network site. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkSite withNetworkSiteName(String networkSiteName) { setNetworkSiteName(networkSiteName); return this; } /** *

* The pending plan of the network site. *

* * @param pendingPlan * The pending plan of the network site. */ public void setPendingPlan(SitePlan pendingPlan) { this.pendingPlan = pendingPlan; } /** *

* The pending plan of the network site. *

* * @return The pending plan of the network site. */ public SitePlan getPendingPlan() { return this.pendingPlan; } /** *

* The pending plan of the network site. *

* * @param pendingPlan * The pending plan of the network site. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkSite withPendingPlan(SitePlan pendingPlan) { setPendingPlan(pendingPlan); return this; } /** *

* The status of the network site. *

* * @param status * The status of the network site. * @see NetworkSiteStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the network site. *

* * @return The status of the network site. * @see NetworkSiteStatus */ public String getStatus() { return this.status; } /** *

* The status of the network site. *

* * @param status * The status of the network site. * @return Returns a reference to this object so that method calls can be chained together. * @see NetworkSiteStatus */ public NetworkSite withStatus(String status) { setStatus(status); return this; } /** *

* The status of the network site. *

* * @param status * The status of the network site. * @return Returns a reference to this object so that method calls can be chained together. * @see NetworkSiteStatus */ public NetworkSite withStatus(NetworkSiteStatus status) { this.status = status.toString(); return this; } /** *

* The status reason of the network site. *

* * @param statusReason * The status reason of the network site. */ public void setStatusReason(String statusReason) { this.statusReason = statusReason; } /** *

* The status reason of the network site. *

* * @return The status reason of the network site. */ public String getStatusReason() { return this.statusReason; } /** *

* The status reason of the network site. *

* * @param statusReason * The status reason of the network site. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkSite withStatusReason(String statusReason) { setStatusReason(statusReason); 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 (getAvailabilityZone() != null) sb.append("AvailabilityZone: ").append(getAvailabilityZone()).append(","); if (getAvailabilityZoneId() != null) sb.append("AvailabilityZoneId: ").append(getAvailabilityZoneId()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getCurrentPlan() != null) sb.append("CurrentPlan: ").append(getCurrentPlan()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getNetworkArn() != null) sb.append("NetworkArn: ").append(getNetworkArn()).append(","); if (getNetworkSiteArn() != null) sb.append("NetworkSiteArn: ").append(getNetworkSiteArn()).append(","); if (getNetworkSiteName() != null) sb.append("NetworkSiteName: ").append(getNetworkSiteName()).append(","); if (getPendingPlan() != null) sb.append("PendingPlan: ").append(getPendingPlan()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusReason() != null) sb.append("StatusReason: ").append(getStatusReason()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NetworkSite == false) return false; NetworkSite other = (NetworkSite) obj; if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == null) return false; if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == false) return false; if (other.getAvailabilityZoneId() == null ^ this.getAvailabilityZoneId() == null) return false; if (other.getAvailabilityZoneId() != null && other.getAvailabilityZoneId().equals(this.getAvailabilityZoneId()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getCurrentPlan() == null ^ this.getCurrentPlan() == null) return false; if (other.getCurrentPlan() != null && other.getCurrentPlan().equals(this.getCurrentPlan()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getNetworkArn() == null ^ this.getNetworkArn() == null) return false; if (other.getNetworkArn() != null && other.getNetworkArn().equals(this.getNetworkArn()) == false) return false; if (other.getNetworkSiteArn() == null ^ this.getNetworkSiteArn() == null) return false; if (other.getNetworkSiteArn() != null && other.getNetworkSiteArn().equals(this.getNetworkSiteArn()) == false) return false; if (other.getNetworkSiteName() == null ^ this.getNetworkSiteName() == null) return false; if (other.getNetworkSiteName() != null && other.getNetworkSiteName().equals(this.getNetworkSiteName()) == false) return false; if (other.getPendingPlan() == null ^ this.getPendingPlan() == null) return false; if (other.getPendingPlan() != null && other.getPendingPlan().equals(this.getPendingPlan()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStatusReason() == null ^ this.getStatusReason() == null) return false; if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode()); hashCode = prime * hashCode + ((getAvailabilityZoneId() == null) ? 0 : getAvailabilityZoneId().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getCurrentPlan() == null) ? 0 : getCurrentPlan().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getNetworkArn() == null) ? 0 : getNetworkArn().hashCode()); hashCode = prime * hashCode + ((getNetworkSiteArn() == null) ? 0 : getNetworkSiteArn().hashCode()); hashCode = prime * hashCode + ((getNetworkSiteName() == null) ? 0 : getNetworkSiteName().hashCode()); hashCode = prime * hashCode + ((getPendingPlan() == null) ? 0 : getPendingPlan().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode()); return hashCode; } @Override public NetworkSite clone() { try { return (NetworkSite) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.private5g.model.transform.NetworkSiteMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy