
com.pulumi.azurenative.compute.outputs.CloudServiceNetworkProfileResponse Maven / Gradle / Ivy
// *** 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.compute.outputs;
import com.pulumi.azurenative.compute.outputs.LoadBalancerConfigurationResponse;
import com.pulumi.azurenative.compute.outputs.SubResourceResponse;
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 CloudServiceNetworkProfileResponse {
/**
* @return List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer.
*
*/
private @Nullable List loadBalancerConfigurations;
/**
* @return Slot type for the cloud service.
* Possible values are <br /><br />**Production**<br /><br />**Staging**<br /><br />
* If not specified, the default value is Production.
*
*/
private @Nullable String slotType;
/**
* @return The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown.
*
*/
private @Nullable SubResourceResponse swappableCloudService;
private CloudServiceNetworkProfileResponse() {}
/**
* @return List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer.
*
*/
public List loadBalancerConfigurations() {
return this.loadBalancerConfigurations == null ? List.of() : this.loadBalancerConfigurations;
}
/**
* @return Slot type for the cloud service.
* Possible values are <br /><br />**Production**<br /><br />**Staging**<br /><br />
* If not specified, the default value is Production.
*
*/
public Optional slotType() {
return Optional.ofNullable(this.slotType);
}
/**
* @return The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown.
*
*/
public Optional swappableCloudService() {
return Optional.ofNullable(this.swappableCloudService);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CloudServiceNetworkProfileResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List loadBalancerConfigurations;
private @Nullable String slotType;
private @Nullable SubResourceResponse swappableCloudService;
public Builder() {}
public Builder(CloudServiceNetworkProfileResponse defaults) {
Objects.requireNonNull(defaults);
this.loadBalancerConfigurations = defaults.loadBalancerConfigurations;
this.slotType = defaults.slotType;
this.swappableCloudService = defaults.swappableCloudService;
}
@CustomType.Setter
public Builder loadBalancerConfigurations(@Nullable List loadBalancerConfigurations) {
this.loadBalancerConfigurations = loadBalancerConfigurations;
return this;
}
public Builder loadBalancerConfigurations(LoadBalancerConfigurationResponse... loadBalancerConfigurations) {
return loadBalancerConfigurations(List.of(loadBalancerConfigurations));
}
@CustomType.Setter
public Builder slotType(@Nullable String slotType) {
this.slotType = slotType;
return this;
}
@CustomType.Setter
public Builder swappableCloudService(@Nullable SubResourceResponse swappableCloudService) {
this.swappableCloudService = swappableCloudService;
return this;
}
public CloudServiceNetworkProfileResponse build() {
final var _resultValue = new CloudServiceNetworkProfileResponse();
_resultValue.loadBalancerConfigurations = loadBalancerConfigurations;
_resultValue.slotType = slotType;
_resultValue.swappableCloudService = swappableCloudService;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy