Package com.ibm.cloud.sdk.core.security
Class VpcInstanceAuthenticator.Builder
- java.lang.Object
-
- com.ibm.cloud.sdk.core.security.VpcInstanceAuthenticator.Builder
-
- Enclosing class:
- VpcInstanceAuthenticator
public static class VpcInstanceAuthenticator.Builder extends java.lang.ObjectThis Builder class is used to construct IamAuthenticator instances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VpcInstanceAuthenticatorbuild()Constructs a new instance of IamAuthenticator from the builder's configuration.VpcInstanceAuthenticator.BuilderiamProfileCrn(java.lang.String iamProfileCrn)Sets the iamProfileCrn property.VpcInstanceAuthenticator.BuilderiamProfileId(java.lang.String iamProfileId)Sets the iamProfileId property.VpcInstanceAuthenticator.Builderurl(java.lang.String url)Sets the url property.
-
-
-
Method Detail
-
build
public VpcInstanceAuthenticator build()
Constructs a new instance of IamAuthenticator from the builder's configuration.- Returns:
- the IamAuthenticator instance
-
iamProfileCrn
public VpcInstanceAuthenticator.Builder iamProfileCrn(java.lang.String iamProfileCrn)
Sets the iamProfileCrn property.- Parameters:
iamProfileCrn- the CRN of the linked trusted IAM profile to be used as the identity of the compute resource. At most one of iamProfileCrn or iamProfileId may be specified. If neither one is specified, then the default IAM profile defined for the compute resource will be used.- Returns:
- the Builder
-
iamProfileId
public VpcInstanceAuthenticator.Builder iamProfileId(java.lang.String iamProfileId)
Sets the iamProfileId property.- Parameters:
iamProfileId- the id of the linked trusted IAM profile to be used as the identity of the compute resource. At most one of iamProfileCrn or iamProfileId may be specified. If neither one is specified, then the default IAM profile defined for the compute resource will be used.- Returns:
- the Builder
-
url
public VpcInstanceAuthenticator.Builder url(java.lang.String url)
Sets the url property.- Parameters:
url- the base url to use with the IAM token service- Returns:
- the Builder
-
-