com.pulumi.azurenative.web.outputs.DaprComponentResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.web.outputs;
import com.pulumi.azurenative.web.outputs.DaprMetadataResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DaprComponentResponse {
/**
* @return Component metadata
*
*/
private @Nullable List metadata;
/**
* @return Component name
*
*/
private @Nullable String name;
/**
* @return Component type
*
*/
private @Nullable String type;
/**
* @return Component version
*
*/
private @Nullable String version;
private DaprComponentResponse() {}
/**
* @return Component metadata
*
*/
public List metadata() {
return this.metadata == null ? List.of() : this.metadata;
}
/**
* @return Component name
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Component type
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
/**
* @return Component version
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DaprComponentResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List metadata;
private @Nullable String name;
private @Nullable String type;
private @Nullable String version;
public Builder() {}
public Builder(DaprComponentResponse defaults) {
Objects.requireNonNull(defaults);
this.metadata = defaults.metadata;
this.name = defaults.name;
this.type = defaults.type;
this.version = defaults.version;
}
@CustomType.Setter
public Builder metadata(@Nullable List metadata) {
this.metadata = metadata;
return this;
}
public Builder metadata(DaprMetadataResponse... metadata) {
return metadata(List.of(metadata));
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
public DaprComponentResponse build() {
final var _resultValue = new DaprComponentResponse();
_resultValue.metadata = metadata;
_resultValue.name = name;
_resultValue.type = type;
_resultValue.version = version;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy