/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(CreateVaultResponse o) { etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); vault(o.getVault()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(GetKeyResponse o) { etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); key(o.getKey()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(DisableKeyResponse o) { etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); key(o.getKey()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(GetVaultResponse o) { etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); vault(o.getVault()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(ListVaultsResponse o) { opcNextPage(o.getOpcNextPage()); opcRequestId(o.getOpcRequestId()); items(o.getItems()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(EnableKeyResponse o) { etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); key(o.getKey()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(ScheduleVaultDeletionResponse o) { etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); vault(o.getVault()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(UpdateKeyResponse o) { etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); key(o.getKey()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(ListKeyVersionsResponse o) { opcNextPage(o.getOpcNextPage()); opcRequestId(o.getOpcRequestId()); items(o.getItems()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(CancelVaultDeletionResponse o) { etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); vault(o.getVault()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(CreateKeyVersionResponse o) { etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); keyVersion(o.getKeyVersion()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(UpdateVaultResponse o) { etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); vault(o.getVault()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(ListKeysResponse o) { opcNextPage(o.getOpcNextPage()); opcRequestId(o.getOpcRequestId()); items(o.getItems()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(CreateKeyResponse o) { etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); key(o.getKey()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(GetKeyVersionResponse o) { etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); keyVersion(o.getKeyVersion()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(GenerateDataEncryptionKeyResponse o) { opcRequestId(o.getOpcRequestId()); generatedKey(o.getGeneratedKey()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(DecryptResponse o) { opcRequestId(o.getOpcRequestId()); decryptedData(o.getDecryptedData()); return this; } }
/** * Copy method to populate the builder with values from the given instance. * @return this builder instance */ public Builder copy(EncryptResponse o) { opcRequestId(o.getOpcRequestId()); encryptedData(o.getEncryptedData()); return this; } }
public static void listKeysTest(KmsManagementClient kmsManagementClient, String compartmentId) { System.out.println("ListKeys Test: "); ListKeysRequest listKeysRequest = ListKeysRequest.builder().compartmentId(compartmentId).build(); ListKeysResponse response = kmsManagementClient.listKeys(listKeysRequest); System.out.println("ListKeys Response: "); for (KeySummary key : response.getItems()) { System.out.println(key); } System.out.println(); }
public static void disableKeyTest(KmsManagementClient kmsManagementClient, String keyId) { System.out.println("DisableKey Test: "); DisableKeyRequest disableKeyRequest = DisableKeyRequest.builder().keyId(keyId).build(); DisableKeyResponse response = kmsManagementClient.disableKey(disableKeyRequest); System.out.println("Key Disabled Successfully, Updated Key: "); System.out.println(response.getKey()); System.out.println(); }