com.pulumi.azure.apimanagement.outputs.ApiOperationResponseHeaderExample Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.apimanagement.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ApiOperationResponseHeaderExample {
/**
* @return A long description for this example.
*
*/
private @Nullable String description;
/**
* @return A URL that points to the literal example.
*
*/
private @Nullable String externalValue;
/**
* @return The name of this example.
*
*/
private String name;
/**
* @return A short description for this example.
*
*/
private @Nullable String summary;
/**
* @return The example of the representation.
*
*/
private @Nullable String value;
private ApiOperationResponseHeaderExample() {}
/**
* @return A long description for this example.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return A URL that points to the literal example.
*
*/
public Optional externalValue() {
return Optional.ofNullable(this.externalValue);
}
/**
* @return The name of this example.
*
*/
public String name() {
return this.name;
}
/**
* @return A short description for this example.
*
*/
public Optional summary() {
return Optional.ofNullable(this.summary);
}
/**
* @return The example of the representation.
*
*/
public Optional value() {
return Optional.ofNullable(this.value);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ApiOperationResponseHeaderExample defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String description;
private @Nullable String externalValue;
private String name;
private @Nullable String summary;
private @Nullable String value;
public Builder() {}
public Builder(ApiOperationResponseHeaderExample defaults) {
Objects.requireNonNull(defaults);
this.description = defaults.description;
this.externalValue = defaults.externalValue;
this.name = defaults.name;
this.summary = defaults.summary;
this.value = defaults.value;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder externalValue(@Nullable String externalValue) {
this.externalValue = externalValue;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("ApiOperationResponseHeaderExample", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder summary(@Nullable String summary) {
this.summary = summary;
return this;
}
@CustomType.Setter
public Builder value(@Nullable String value) {
this.value = value;
return this;
}
public ApiOperationResponseHeaderExample build() {
final var _resultValue = new ApiOperationResponseHeaderExample();
_resultValue.description = description;
_resultValue.externalValue = externalValue;
_resultValue.name = name;
_resultValue.summary = summary;
_resultValue.value = value;
return _resultValue;
}
}
}