com.pulumi.azurenative.azurefleet.outputs.PlanResponse 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.azurefleet.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 PlanResponse {
/**
* @return A user defined name of the 3rd Party Artifact that is being procured.
*
*/
private String name;
/**
* @return The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding.
*
*/
private String product;
/**
* @return A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
*
*/
private @Nullable String promotionCode;
/**
* @return The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
*
*/
private String publisher;
/**
* @return The version of the desired product/artifact.
*
*/
private @Nullable String version;
private PlanResponse() {}
/**
* @return A user defined name of the 3rd Party Artifact that is being procured.
*
*/
public String name() {
return this.name;
}
/**
* @return The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding.
*
*/
public String product() {
return this.product;
}
/**
* @return A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
*
*/
public Optional promotionCode() {
return Optional.ofNullable(this.promotionCode);
}
/**
* @return The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
*
*/
public String publisher() {
return this.publisher;
}
/**
* @return The version of the desired product/artifact.
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PlanResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String name;
private String product;
private @Nullable String promotionCode;
private String publisher;
private @Nullable String version;
public Builder() {}
public Builder(PlanResponse defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.product = defaults.product;
this.promotionCode = defaults.promotionCode;
this.publisher = defaults.publisher;
this.version = defaults.version;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("PlanResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder product(String product) {
if (product == null) {
throw new MissingRequiredPropertyException("PlanResponse", "product");
}
this.product = product;
return this;
}
@CustomType.Setter
public Builder promotionCode(@Nullable String promotionCode) {
this.promotionCode = promotionCode;
return this;
}
@CustomType.Setter
public Builder publisher(String publisher) {
if (publisher == null) {
throw new MissingRequiredPropertyException("PlanResponse", "publisher");
}
this.publisher = publisher;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
public PlanResponse build() {
final var _resultValue = new PlanResponse();
_resultValue.name = name;
_resultValue.product = product;
_resultValue.promotionCode = promotionCode;
_resultValue.publisher = publisher;
_resultValue.version = version;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy