Class CreateKeyWithPoliciesOverridesOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.ibm_key_protect_api.v2.model.CreateKeyWithPoliciesOverridesOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CreateKeyWithPoliciesOverridesOptions extends com.ibm.cloud.sdk.core.service.model.GenericModel
The createKeyWithPoliciesOverrides options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateKeyWithPoliciesOverridesOptions.Builder
Builder.static interface
CreateKeyWithPoliciesOverridesOptions.Prefer
Alters server behavior for POST or DELETE operations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
bluemixInstance()
Gets the bluemixInstance.String
correlationId()
Gets the correlationId.InputStream
keyWithPolicyOverridesCreateBody()
Gets the keyWithPolicyOverridesCreateBody.CreateKeyWithPoliciesOverridesOptions.Builder
newBuilder()
New builder.String
prefer()
Gets the prefer.String
xKmsKeyRing()
Gets the xKmsKeyRing.
-
-
-
Method Detail
-
newBuilder
public CreateKeyWithPoliciesOverridesOptions.Builder newBuilder()
New builder.- Returns:
- a CreateKeyWithPoliciesOverridesOptions builder
-
bluemixInstance
public String bluemixInstance()
Gets the bluemixInstance. The IBM Cloud instance ID that identifies your Key Protect service instance.- Returns:
- the bluemixInstance
-
keyWithPolicyOverridesCreateBody
public InputStream keyWithPolicyOverridesCreateBody()
Gets the keyWithPolicyOverridesCreateBody. The base request for creating a new key with policies.- Returns:
- the keyWithPolicyOverridesCreateBody
-
correlationId
public String correlationId()
Gets the correlationId. The v4 UUID used to correlate and track transactions.- Returns:
- the correlationId
-
prefer
public String prefer()
Gets the prefer. Alters server behavior for POST or DELETE operations. A header with `return=minimal` causes the service to return only the key identifier as metadata. A header containing `return=representation` returns both the key material and metadata in the response entity-body. If the key has been designated as a root key, the system cannot return the key material. **Note:** During POST operations, Key Protect may not immediately return the key material due to key generation time. To retrieve the key material, you can perform a subsequent `GET /keys/{id}` request.- Returns:
- the prefer
-
xKmsKeyRing
public String xKmsKeyRing()
Gets the xKmsKeyRing. The ID of the key ring that the specified key belongs to. When the header is not specified, Key Protect will perform a key ring lookup. For a more optimized request, specify the key ring on every call. The key ring ID of keys that are created without an `X-Kms-Key-Ring` header is: `default`.- Returns:
- the xKmsKeyRing
-
-