
com.pulumi.aws.datasync.outputs.LocationFsxOntapFileSystemProtocol 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.aws.datasync.outputs;
import com.pulumi.aws.datasync.outputs.LocationFsxOntapFileSystemProtocolNfs;
import com.pulumi.aws.datasync.outputs.LocationFsxOntapFileSystemProtocolSmb;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LocationFsxOntapFileSystemProtocol {
/**
* @return Network File System (NFS) protocol that DataSync uses to access your FSx ONTAP file system. See NFS below.
*
*/
private @Nullable LocationFsxOntapFileSystemProtocolNfs nfs;
/**
* @return Server Message Block (SMB) protocol that DataSync uses to access your FSx ONTAP file system. See [SMB] (#smb) below.
*
*/
private @Nullable LocationFsxOntapFileSystemProtocolSmb smb;
private LocationFsxOntapFileSystemProtocol() {}
/**
* @return Network File System (NFS) protocol that DataSync uses to access your FSx ONTAP file system. See NFS below.
*
*/
public Optional nfs() {
return Optional.ofNullable(this.nfs);
}
/**
* @return Server Message Block (SMB) protocol that DataSync uses to access your FSx ONTAP file system. See [SMB] (#smb) below.
*
*/
public Optional smb() {
return Optional.ofNullable(this.smb);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LocationFsxOntapFileSystemProtocol defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable LocationFsxOntapFileSystemProtocolNfs nfs;
private @Nullable LocationFsxOntapFileSystemProtocolSmb smb;
public Builder() {}
public Builder(LocationFsxOntapFileSystemProtocol defaults) {
Objects.requireNonNull(defaults);
this.nfs = defaults.nfs;
this.smb = defaults.smb;
}
@CustomType.Setter
public Builder nfs(@Nullable LocationFsxOntapFileSystemProtocolNfs nfs) {
this.nfs = nfs;
return this;
}
@CustomType.Setter
public Builder smb(@Nullable LocationFsxOntapFileSystemProtocolSmb smb) {
this.smb = smb;
return this;
}
public LocationFsxOntapFileSystemProtocol build() {
final var _resultValue = new LocationFsxOntapFileSystemProtocol();
_resultValue.nfs = nfs;
_resultValue.smb = smb;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy