com.pulumi.azurenative.storage.outputs.ListLocalUserKeysResult 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.storage.outputs;
import com.pulumi.azurenative.storage.outputs.SshPublicKeyResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class ListLocalUserKeysResult {
/**
* @return Auto generated by the server for SMB authentication.
*
*/
private String sharedKey;
/**
* @return Optional, local user ssh authorized keys for SFTP.
*
*/
private @Nullable List sshAuthorizedKeys;
private ListLocalUserKeysResult() {}
/**
* @return Auto generated by the server for SMB authentication.
*
*/
public String sharedKey() {
return this.sharedKey;
}
/**
* @return Optional, local user ssh authorized keys for SFTP.
*
*/
public List sshAuthorizedKeys() {
return this.sshAuthorizedKeys == null ? List.of() : this.sshAuthorizedKeys;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ListLocalUserKeysResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String sharedKey;
private @Nullable List sshAuthorizedKeys;
public Builder() {}
public Builder(ListLocalUserKeysResult defaults) {
Objects.requireNonNull(defaults);
this.sharedKey = defaults.sharedKey;
this.sshAuthorizedKeys = defaults.sshAuthorizedKeys;
}
@CustomType.Setter
public Builder sharedKey(String sharedKey) {
if (sharedKey == null) {
throw new MissingRequiredPropertyException("ListLocalUserKeysResult", "sharedKey");
}
this.sharedKey = sharedKey;
return this;
}
@CustomType.Setter
public Builder sshAuthorizedKeys(@Nullable List sshAuthorizedKeys) {
this.sshAuthorizedKeys = sshAuthorizedKeys;
return this;
}
public Builder sshAuthorizedKeys(SshPublicKeyResponse... sshAuthorizedKeys) {
return sshAuthorizedKeys(List.of(sshAuthorizedKeys));
}
public ListLocalUserKeysResult build() {
final var _resultValue = new ListLocalUserKeysResult();
_resultValue.sharedKey = sharedKey;
_resultValue.sshAuthorizedKeys = sshAuthorizedKeys;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy