com.pulumi.azurenative.marketplace.outputs.NewNotificationsResponse 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.marketplace.outputs;
import com.pulumi.azurenative.marketplace.outputs.PlanNotificationDetailsResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class NewNotificationsResponse {
/**
* @return Gets offer display name
*
*/
private @Nullable String displayName;
/**
* @return Gets or sets the icon url
*
*/
private @Nullable String icon;
/**
* @return Gets a value indicating whether future plans is enabled.
*
*/
private @Nullable Boolean isFuturePlansEnabled;
/**
* @return Gets or sets the notification message id
*
*/
private @Nullable Double messageCode;
/**
* @return Gets offer id
*
*/
private @Nullable String offerId;
/**
* @return Gets or sets removed plans notifications
*
*/
private @Nullable List plans;
private NewNotificationsResponse() {}
/**
* @return Gets offer display name
*
*/
public Optional displayName() {
return Optional.ofNullable(this.displayName);
}
/**
* @return Gets or sets the icon url
*
*/
public Optional icon() {
return Optional.ofNullable(this.icon);
}
/**
* @return Gets a value indicating whether future plans is enabled.
*
*/
public Optional isFuturePlansEnabled() {
return Optional.ofNullable(this.isFuturePlansEnabled);
}
/**
* @return Gets or sets the notification message id
*
*/
public Optional messageCode() {
return Optional.ofNullable(this.messageCode);
}
/**
* @return Gets offer id
*
*/
public Optional offerId() {
return Optional.ofNullable(this.offerId);
}
/**
* @return Gets or sets removed plans notifications
*
*/
public List plans() {
return this.plans == null ? List.of() : this.plans;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NewNotificationsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String displayName;
private @Nullable String icon;
private @Nullable Boolean isFuturePlansEnabled;
private @Nullable Double messageCode;
private @Nullable String offerId;
private @Nullable List plans;
public Builder() {}
public Builder(NewNotificationsResponse defaults) {
Objects.requireNonNull(defaults);
this.displayName = defaults.displayName;
this.icon = defaults.icon;
this.isFuturePlansEnabled = defaults.isFuturePlansEnabled;
this.messageCode = defaults.messageCode;
this.offerId = defaults.offerId;
this.plans = defaults.plans;
}
@CustomType.Setter
public Builder displayName(@Nullable String displayName) {
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder icon(@Nullable String icon) {
this.icon = icon;
return this;
}
@CustomType.Setter
public Builder isFuturePlansEnabled(@Nullable Boolean isFuturePlansEnabled) {
this.isFuturePlansEnabled = isFuturePlansEnabled;
return this;
}
@CustomType.Setter
public Builder messageCode(@Nullable Double messageCode) {
this.messageCode = messageCode;
return this;
}
@CustomType.Setter
public Builder offerId(@Nullable String offerId) {
this.offerId = offerId;
return this;
}
@CustomType.Setter
public Builder plans(@Nullable List plans) {
this.plans = plans;
return this;
}
public Builder plans(PlanNotificationDetailsResponse... plans) {
return plans(List.of(plans));
}
public NewNotificationsResponse build() {
final var _resultValue = new NewNotificationsResponse();
_resultValue.displayName = displayName;
_resultValue.icon = icon;
_resultValue.isFuturePlansEnabled = isFuturePlansEnabled;
_resultValue.messageCode = messageCode;
_resultValue.offerId = offerId;
_resultValue.plans = plans;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy