
com.pulumi.azurenative.apicenter.outputs.LicenseResponse Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.apicenter.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LicenseResponse {
/**
* @return SPDX license information for the API. The identifier field is mutually
* exclusive of the URL field.
*
*/
private @Nullable String identifier;
/**
* @return Name of the license.
*
*/
private @Nullable String name;
/**
* @return URL pointing to the license details. The URL field is mutually exclusive of the
* identifier field.
*
*/
private @Nullable String url;
private LicenseResponse() {}
/**
* @return SPDX license information for the API. The identifier field is mutually
* exclusive of the URL field.
*
*/
public Optional identifier() {
return Optional.ofNullable(this.identifier);
}
/**
* @return Name of the license.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return URL pointing to the license details. The URL field is mutually exclusive of the
* identifier field.
*
*/
public Optional url() {
return Optional.ofNullable(this.url);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LicenseResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String identifier;
private @Nullable String name;
private @Nullable String url;
public Builder() {}
public Builder(LicenseResponse defaults) {
Objects.requireNonNull(defaults);
this.identifier = defaults.identifier;
this.name = defaults.name;
this.url = defaults.url;
}
@CustomType.Setter
public Builder identifier(@Nullable String identifier) {
this.identifier = identifier;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder url(@Nullable String url) {
this.url = url;
return this;
}
public LicenseResponse build() {
final var _resultValue = new LicenseResponse();
_resultValue.identifier = identifier;
_resultValue.name = name;
_resultValue.url = url;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy