com.blazebit.expression.azure.subscription.model.TenantListResult 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.TenantIdDescription;
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;
/**
* Tenant Ids information.
*/
@JsonPropertyOrder({
TenantListResult.JSON_PROPERTY_VALUE,
TenantListResult.JSON_PROPERTY_NEXT_LINK
})
@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 TenantListResult {
public static final String JSON_PROPERTY_VALUE = "value";
private List value = new ArrayList<>();
public static final String JSON_PROPERTY_NEXT_LINK = "nextLink";
private String nextLink;
public TenantListResult() {
}
public TenantListResult value(List value) {
this.value = value;
return this;
}
public TenantListResult addValueItem(TenantIdDescription valueItem) {
if (this.value == null) {
this.value = new ArrayList<>();
}
this.value.add(valueItem);
return this;
}
/**
* An array of tenants.
* @return value
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getValue() {
return value;
}
@JsonProperty(JSON_PROPERTY_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setValue(List value) {
this.value = value;
}
public TenantListResult nextLink(String nextLink) {
this.nextLink = nextLink;
return this;
}
/**
* The URL to use for getting the next set of results.
* @return nextLink
**/
@jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_NEXT_LINK)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getNextLink() {
return nextLink;
}
@JsonProperty(JSON_PROPERTY_NEXT_LINK)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setNextLink(String nextLink) {
this.nextLink = nextLink;
}
/**
* Return true if this TenantListResult object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TenantListResult tenantListResult = (TenantListResult) o;
return Objects.equals(this.value, tenantListResult.value) &&
Objects.equals(this.nextLink, tenantListResult.nextLink);
}
@Override
public int hashCode() {
return Objects.hash(value, nextLink);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TenantListResult {\n");
sb.append(" value: ").append(toIndentedString(value)).append("\n");
sb.append(" nextLink: ").append(toIndentedString(nextLink)).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