Class CloudSdk.Builder
- java.lang.Object
-
- com.google.cloud.tools.appengine.operations.CloudSdk.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudSdk
build()
Create a new instance ofCloudSdk
.List<CloudSdkResolver>
getResolvers()
Return the configured SDK resolvers.CloudSdk.Builder
javaHome(Path javaHomePath)
Sets the desired Java SDK path, used in devappserver runs and App Engine standard staging.CloudSdk.Builder
resolvers(List<CloudSdkResolver> resolvers)
CloudSdk.Builder
sdkPath(Path sdkPath)
The home directory of Google Cloud SDK.
-
-
-
Method Detail
-
sdkPath
public CloudSdk.Builder sdkPath(@Nullable Path sdkPath)
The home directory of Google Cloud SDK.- Parameters:
sdkPath
- the root path for the Cloud SDK. If null, the system will be searched for a Cloud SDK installation.
-
javaHome
public CloudSdk.Builder javaHome(Path javaHomePath)
Sets the desired Java SDK path, used in devappserver runs and App Engine standard staging.
-
build
public CloudSdk build() throws CloudSdkNotFoundException
Create a new instance ofCloudSdk
. IfsdkPath
is not set, this method looks for the SDK in known install locations.- Throws:
CloudSdkNotFoundException
-
getResolvers
public List<CloudSdkResolver> getResolvers()
Return the configured SDK resolvers.
-
resolvers
public CloudSdk.Builder resolvers(List<CloudSdkResolver> resolvers)
-
-