Class CreateKeyWithPoliciesOverridesOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.ibm_key_protect_api.v2.model.CreateKeyWithPoliciesOverridesOptions.Builder
-
- Enclosing class:
- CreateKeyWithPoliciesOverridesOptions
public static class CreateKeyWithPoliciesOverridesOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(String bluemixInstance, InputStream keyWithPolicyOverridesCreateBody)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateKeyWithPoliciesOverridesOptions.Builder
bluemixInstance(String bluemixInstance)
Set the bluemixInstance.CreateKeyWithPoliciesOverridesOptions
build()
Builds a CreateKeyWithPoliciesOverridesOptions.CreateKeyWithPoliciesOverridesOptions.Builder
correlationId(String correlationId)
Set the correlationId.CreateKeyWithPoliciesOverridesOptions.Builder
keyWithPolicyOverridesCreateBody(File keyWithPolicyOverridesCreateBody)
Set the keyWithPolicyOverridesCreateBody.CreateKeyWithPoliciesOverridesOptions.Builder
keyWithPolicyOverridesCreateBody(InputStream keyWithPolicyOverridesCreateBody)
Set the keyWithPolicyOverridesCreateBody.CreateKeyWithPoliciesOverridesOptions.Builder
prefer(String prefer)
Set the prefer.CreateKeyWithPoliciesOverridesOptions.Builder
xKmsKeyRing(String xKmsKeyRing)
Set the xKmsKeyRing.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String bluemixInstance, InputStream keyWithPolicyOverridesCreateBody)
Instantiates a new builder with required properties.- Parameters:
bluemixInstance
- the bluemixInstancekeyWithPolicyOverridesCreateBody
- the keyWithPolicyOverridesCreateBody
-
-
Method Detail
-
build
public CreateKeyWithPoliciesOverridesOptions build()
Builds a CreateKeyWithPoliciesOverridesOptions.- Returns:
- the new CreateKeyWithPoliciesOverridesOptions instance
-
bluemixInstance
public CreateKeyWithPoliciesOverridesOptions.Builder bluemixInstance(String bluemixInstance)
Set the bluemixInstance.- Parameters:
bluemixInstance
- the bluemixInstance- Returns:
- the CreateKeyWithPoliciesOverridesOptions builder
-
keyWithPolicyOverridesCreateBody
public CreateKeyWithPoliciesOverridesOptions.Builder keyWithPolicyOverridesCreateBody(InputStream keyWithPolicyOverridesCreateBody)
Set the keyWithPolicyOverridesCreateBody.- Parameters:
keyWithPolicyOverridesCreateBody
- the keyWithPolicyOverridesCreateBody- Returns:
- the CreateKeyWithPoliciesOverridesOptions builder
-
correlationId
public CreateKeyWithPoliciesOverridesOptions.Builder correlationId(String correlationId)
Set the correlationId.- Parameters:
correlationId
- the correlationId- Returns:
- the CreateKeyWithPoliciesOverridesOptions builder
-
prefer
public CreateKeyWithPoliciesOverridesOptions.Builder prefer(String prefer)
Set the prefer.- Parameters:
prefer
- the prefer- Returns:
- the CreateKeyWithPoliciesOverridesOptions builder
-
xKmsKeyRing
public CreateKeyWithPoliciesOverridesOptions.Builder xKmsKeyRing(String xKmsKeyRing)
Set the xKmsKeyRing.- Parameters:
xKmsKeyRing
- the xKmsKeyRing- Returns:
- the CreateKeyWithPoliciesOverridesOptions builder
-
keyWithPolicyOverridesCreateBody
public CreateKeyWithPoliciesOverridesOptions.Builder keyWithPolicyOverridesCreateBody(File keyWithPolicyOverridesCreateBody) throws FileNotFoundException
Set the keyWithPolicyOverridesCreateBody.- Parameters:
keyWithPolicyOverridesCreateBody
- the keyWithPolicyOverridesCreateBody- Returns:
- the CreateKeyWithPoliciesOverridesOptions builder
- Throws:
FileNotFoundException
- if the file could not be found
-
-