com.blazebit.expression.azure.subscription.model.AvailabilityZonePeers Maven / Gradle / Ivy
/*
* SubscriptionClient
* All resource groups and resources exist within subscriptions. These operation enable you get information about your subscriptions and tenants. A tenant is a dedicated instance of Azure Active Directory (Azure AD) for your organization.
*
* The version of the OpenAPI document: 2022-12-01
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.blazebit.expression.azure.subscription.model;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.blazebit.expression.azure.subscription.model.Peers;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.blazebit.expression.azure.invoker.JSON;
/**
* List of availability zones shared by the subscriptions.
*/
@JsonPropertyOrder({
AvailabilityZonePeers.JSON_PROPERTY_AVAILABILITY_ZONE,
AvailabilityZonePeers.JSON_PROPERTY_PEERS
})
@com.blazebit.domain.declarative.DomainType
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-12-27T17:30:38.203241700+01:00[Europe/Berlin]", comments = "Generator version: 7.5.0")
public class AvailabilityZonePeers {
public static final String JSON_PROPERTY_AVAILABILITY_ZONE = "availabilityZone";
private String availabilityZone;
public static final String JSON_PROPERTY_PEERS = "peers";
private List peers = new ArrayList<>();
public AvailabilityZonePeers() {
}
@JsonCreator
public AvailabilityZonePeers(
@JsonProperty(JSON_PROPERTY_AVAILABILITY_ZONE) String availabilityZone
) {
this();
this.availabilityZone = availabilityZone;
}
/**
* The availabilityZone.
* @return availabilityZone
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_AVAILABILITY_ZONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAvailabilityZone() {
return availabilityZone;
}
public AvailabilityZonePeers peers(List peers) {
this.peers = peers;
return this;
}
public AvailabilityZonePeers addPeersItem(Peers peersItem) {
if (this.peers == null) {
this.peers = new ArrayList<>();
}
this.peers.add(peersItem);
return this;
}
/**
* Details of shared availability zone.
* @return peers
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PEERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getPeers() {
return peers;
}
@JsonProperty(JSON_PROPERTY_PEERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPeers(List peers) {
this.peers = peers;
}
/**
* Return true if this AvailabilityZonePeers object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AvailabilityZonePeers availabilityZonePeers = (AvailabilityZonePeers) o;
return Objects.equals(this.availabilityZone, availabilityZonePeers.availabilityZone) &&
Objects.equals(this.peers, availabilityZonePeers.peers);
}
@Override
public int hashCode() {
return Objects.hash(availabilityZone, peers);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AvailabilityZonePeers {\n");
sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\n");
sb.append(" peers: ").append(toIndentedString(peers)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy