com.microsoft.azure.batch.protocol.models.NFSMountConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-batch Show documentation
Show all versions of azure-batch Show documentation
This package contains the root module of Microsoft Azure Batch SDK.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.batch.protocol.models;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Information used to connect to an NFS file system.
*/
public class NFSMountConfiguration {
/**
* The URI of the file system to mount.
*/
@JsonProperty(value = "source", required = true)
private String source;
/**
* The relative path on the compute node where the file system will be
* mounted.
* All file systems are mounted relative to the Batch mounts directory,
* accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
*/
@JsonProperty(value = "relativeMountPath", required = true)
private String relativeMountPath;
/**
* Additional command line options to pass to the mount command.
* These are 'net use' options in Windows and 'mount' options in Linux.
*/
@JsonProperty(value = "mountOptions")
private String mountOptions;
/**
* Get the source value.
*
* @return the source value
*/
public String source() {
return this.source;
}
/**
* Set the source value.
*
* @param source the source value to set
* @return the NFSMountConfiguration object itself.
*/
public NFSMountConfiguration withSource(String source) {
this.source = source;
return this;
}
/**
* Get all file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
*
* @return the relativeMountPath value
*/
public String relativeMountPath() {
return this.relativeMountPath;
}
/**
* Set all file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
*
* @param relativeMountPath the relativeMountPath value to set
* @return the NFSMountConfiguration object itself.
*/
public NFSMountConfiguration withRelativeMountPath(String relativeMountPath) {
this.relativeMountPath = relativeMountPath;
return this;
}
/**
* Get these are 'net use' options in Windows and 'mount' options in Linux.
*
* @return the mountOptions value
*/
public String mountOptions() {
return this.mountOptions;
}
/**
* Set these are 'net use' options in Windows and 'mount' options in Linux.
*
* @param mountOptions the mountOptions value to set
* @return the NFSMountConfiguration object itself.
*/
public NFSMountConfiguration withMountOptions(String mountOptions) {
this.mountOptions = mountOptions;
return this;
}
}