com.blazebit.expression.azure.subscription.model.CheckZonePeersResult 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.AvailabilityZonePeers;
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;
/**
* Result of the Check zone peers operation.
*/
@JsonPropertyOrder({
CheckZonePeersResult.JSON_PROPERTY_SUBSCRIPTION_ID,
CheckZonePeersResult.JSON_PROPERTY_LOCATION,
CheckZonePeersResult.JSON_PROPERTY_AVAILABILITY_ZONE_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 CheckZonePeersResult {
public static final String JSON_PROPERTY_SUBSCRIPTION_ID = "subscriptionId";
private String subscriptionId;
public static final String JSON_PROPERTY_LOCATION = "location";
private String location;
public static final String JSON_PROPERTY_AVAILABILITY_ZONE_PEERS = "availabilityZonePeers";
private List availabilityZonePeers = new ArrayList<>();
public CheckZonePeersResult() {
}
@JsonCreator
public CheckZonePeersResult(
@JsonProperty(JSON_PROPERTY_SUBSCRIPTION_ID) String subscriptionId
) {
this();
this.subscriptionId = subscriptionId;
}
/**
* The subscription ID.
* @return subscriptionId
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SUBSCRIPTION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSubscriptionId() {
return subscriptionId;
}
public CheckZonePeersResult location(String location) {
this.location = location;
return this;
}
/**
* the location of the subscription.
* @return location
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LOCATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLocation() {
return location;
}
@JsonProperty(JSON_PROPERTY_LOCATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLocation(String location) {
this.location = location;
}
public CheckZonePeersResult availabilityZonePeers(List availabilityZonePeers) {
this.availabilityZonePeers = availabilityZonePeers;
return this;
}
public CheckZonePeersResult addAvailabilityZonePeersItem(AvailabilityZonePeers availabilityZonePeersItem) {
if (this.availabilityZonePeers == null) {
this.availabilityZonePeers = new ArrayList<>();
}
this.availabilityZonePeers.add(availabilityZonePeersItem);
return this;
}
/**
* The Availability Zones shared by the subscriptions.
* @return availabilityZonePeers
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_AVAILABILITY_ZONE_PEERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getAvailabilityZonePeers() {
return availabilityZonePeers;
}
@JsonProperty(JSON_PROPERTY_AVAILABILITY_ZONE_PEERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAvailabilityZonePeers(List availabilityZonePeers) {
this.availabilityZonePeers = availabilityZonePeers;
}
/**
* Return true if this CheckZonePeersResult object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CheckZonePeersResult checkZonePeersResult = (CheckZonePeersResult) o;
return Objects.equals(this.subscriptionId, checkZonePeersResult.subscriptionId) &&
Objects.equals(this.location, checkZonePeersResult.location) &&
Objects.equals(this.availabilityZonePeers, checkZonePeersResult.availabilityZonePeers);
}
@Override
public int hashCode() {
return Objects.hash(subscriptionId, location, availabilityZonePeers);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CheckZonePeersResult {\n");
sb.append(" subscriptionId: ").append(toIndentedString(subscriptionId)).append("\n");
sb.append(" location: ").append(toIndentedString(location)).append("\n");
sb.append(" availabilityZonePeers: ").append(toIndentedString(availabilityZonePeers)).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