
com.pulumi.azurenative.edgeorder.outputs.PreferencesResponse 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.edgeorder.outputs;
import com.pulumi.azurenative.edgeorder.outputs.EncryptionPreferencesResponse;
import com.pulumi.azurenative.edgeorder.outputs.ManagementResourcePreferencesResponse;
import com.pulumi.azurenative.edgeorder.outputs.NotificationPreferenceResponse;
import com.pulumi.azurenative.edgeorder.outputs.TransportPreferencesResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PreferencesResponse {
/**
* @return Preferences related to the Encryption.
*
*/
private @Nullable EncryptionPreferencesResponse encryptionPreferences;
/**
* @return Preferences related to the Management resource.
*
*/
private @Nullable ManagementResourcePreferencesResponse managementResourcePreferences;
/**
* @return Notification preferences.
*
*/
private @Nullable List notificationPreferences;
/**
* @return Preferences related to the shipment logistics of the order.
*
*/
private @Nullable TransportPreferencesResponse transportPreferences;
private PreferencesResponse() {}
/**
* @return Preferences related to the Encryption.
*
*/
public Optional encryptionPreferences() {
return Optional.ofNullable(this.encryptionPreferences);
}
/**
* @return Preferences related to the Management resource.
*
*/
public Optional managementResourcePreferences() {
return Optional.ofNullable(this.managementResourcePreferences);
}
/**
* @return Notification preferences.
*
*/
public List notificationPreferences() {
return this.notificationPreferences == null ? List.of() : this.notificationPreferences;
}
/**
* @return Preferences related to the shipment logistics of the order.
*
*/
public Optional transportPreferences() {
return Optional.ofNullable(this.transportPreferences);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PreferencesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable EncryptionPreferencesResponse encryptionPreferences;
private @Nullable ManagementResourcePreferencesResponse managementResourcePreferences;
private @Nullable List notificationPreferences;
private @Nullable TransportPreferencesResponse transportPreferences;
public Builder() {}
public Builder(PreferencesResponse defaults) {
Objects.requireNonNull(defaults);
this.encryptionPreferences = defaults.encryptionPreferences;
this.managementResourcePreferences = defaults.managementResourcePreferences;
this.notificationPreferences = defaults.notificationPreferences;
this.transportPreferences = defaults.transportPreferences;
}
@CustomType.Setter
public Builder encryptionPreferences(@Nullable EncryptionPreferencesResponse encryptionPreferences) {
this.encryptionPreferences = encryptionPreferences;
return this;
}
@CustomType.Setter
public Builder managementResourcePreferences(@Nullable ManagementResourcePreferencesResponse managementResourcePreferences) {
this.managementResourcePreferences = managementResourcePreferences;
return this;
}
@CustomType.Setter
public Builder notificationPreferences(@Nullable List notificationPreferences) {
this.notificationPreferences = notificationPreferences;
return this;
}
public Builder notificationPreferences(NotificationPreferenceResponse... notificationPreferences) {
return notificationPreferences(List.of(notificationPreferences));
}
@CustomType.Setter
public Builder transportPreferences(@Nullable TransportPreferencesResponse transportPreferences) {
this.transportPreferences = transportPreferences;
return this;
}
public PreferencesResponse build() {
final var _resultValue = new PreferencesResponse();
_resultValue.encryptionPreferences = encryptionPreferences;
_resultValue.managementResourcePreferences = managementResourcePreferences;
_resultValue.notificationPreferences = notificationPreferences;
_resultValue.transportPreferences = transportPreferences;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy