
com.pulumi.azurenative.network.outputs.SharedKeyPropertiesResponse 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.network.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SharedKeyPropertiesResponse {
/**
* @return The provisioning state of the SharedKey resource.
*
*/
private String provisioningState;
/**
* @return The value of the shared key for the vpn link connection.
*
*/
private @Nullable String sharedKey;
/**
* @return The length of the shared key for the vpn link connection.
*
*/
private @Nullable Integer sharedKeyLength;
private SharedKeyPropertiesResponse() {}
/**
* @return The provisioning state of the SharedKey resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return The value of the shared key for the vpn link connection.
*
*/
public Optional sharedKey() {
return Optional.ofNullable(this.sharedKey);
}
/**
* @return The length of the shared key for the vpn link connection.
*
*/
public Optional sharedKeyLength() {
return Optional.ofNullable(this.sharedKeyLength);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SharedKeyPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String provisioningState;
private @Nullable String sharedKey;
private @Nullable Integer sharedKeyLength;
public Builder() {}
public Builder(SharedKeyPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.provisioningState = defaults.provisioningState;
this.sharedKey = defaults.sharedKey;
this.sharedKeyLength = defaults.sharedKeyLength;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("SharedKeyPropertiesResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder sharedKey(@Nullable String sharedKey) {
this.sharedKey = sharedKey;
return this;
}
@CustomType.Setter
public Builder sharedKeyLength(@Nullable Integer sharedKeyLength) {
this.sharedKeyLength = sharedKeyLength;
return this;
}
public SharedKeyPropertiesResponse build() {
final var _resultValue = new SharedKeyPropertiesResponse();
_resultValue.provisioningState = provisioningState;
_resultValue.sharedKey = sharedKey;
_resultValue.sharedKeyLength = sharedKeyLength;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy