> contentLengthHeader =
+ HeaderUtils.get(
+ response.getStringHeaders(), HttpHeaders.CONTENT_LENGTH);
+ // If the Content-Length header is present, verify that the length of the input stream matches it
+ if (contentLengthHeader.isPresent()) {
+ long contentLength =
+ HeaderUtils.toValue(
+ HttpHeaders.CONTENT_LENGTH,
+ contentLengthHeader.get().get(0),
+ Long.class);
+
+ inputStream =
+ new ContentLengthVerifyingInputStream(
+ rawInputStream, contentLength);
+ }
+ return (T) inputStream;
} finally {
response.getHeaders().addAll(HttpHeaders.CONTENT_TYPE, contentType);
}
diff --git a/bmc-common/src/main/java/com/oracle/bmc/io/internal/ContentLengthVerifyingInputStream.java b/bmc-common/src/main/java/com/oracle/bmc/io/internal/ContentLengthVerifyingInputStream.java
new file mode 100644
index 00000000000..f0fca9f857b
--- /dev/null
+++ b/bmc-common/src/main/java/com/oracle/bmc/io/internal/ContentLengthVerifyingInputStream.java
@@ -0,0 +1,102 @@
+/**
+ * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
+ */
+package com.oracle.bmc.io.internal;
+
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+/**
+ * A wrapper over an {@link java.io.InputStream} whose length is known, which verifies that
+ * the length of the wrapped stream matches its known length.
+ *
+ * NOTE: This implementation of content length verification does not support {@link InputStream#reset()}
+ * and the verification is disabled upon invocation of {@link InputStream#reset()}.
+ */
+@Slf4j
+@RequiredArgsConstructor
+public class ContentLengthVerifyingInputStream extends InputStream {
+ private final InputStream delegate;
+ private final long contentLength;
+
+ private long totalBytesProcessed = 0L;
+ private boolean isVerificationEnabled = true;
+
+ @Override
+ public int read() throws IOException {
+ final int byteRead = delegate.read();
+ // Either one byte read or eof
+ final int bytesRead = byteRead != -1 ? 1 : -1;
+ processBytesRead(bytesRead);
+ return byteRead;
+ }
+
+ @Override
+ public int read(byte b[]) throws IOException {
+ final int bytesRead = delegate.read(b);
+ processBytesRead(bytesRead);
+ return bytesRead;
+ }
+
+ @Override
+ public int read(byte b[], int off, int len) throws IOException {
+ final int bytesRead = delegate.read(b, off, len);
+ processBytesRead(bytesRead);
+ return bytesRead;
+ }
+
+ @Override
+ public long skip(long n) throws IOException {
+ final long bytesSkipped = delegate.skip(n);
+ totalBytesProcessed += bytesSkipped;
+ return bytesSkipped;
+ }
+
+ @Override
+ public synchronized void mark(int readlimit) {
+ delegate.mark(readlimit);
+ }
+
+ @Override
+ public synchronized void reset() throws IOException {
+ isVerificationEnabled = false;
+ LOG.info("Content length verification disabled");
+ delegate.reset();
+ }
+
+ @Override
+ public int available() throws IOException {
+ return delegate.available();
+ }
+
+ @Override
+ public void close() throws IOException {
+ delegate.close();
+ }
+
+ @Override
+ public boolean markSupported() {
+ return delegate.markSupported();
+ }
+
+ private void processBytesRead(final int bytesRead) throws IOException {
+ if (!isVerificationEnabled) {
+ return;
+ }
+
+ if (bytesRead == -1) {
+ if (totalBytesProcessed != contentLength) {
+ throw new IOException(
+ String.format(
+ "Total bytes processed (%d) does not match content-length (%d)",
+ totalBytesProcessed,
+ contentLength));
+ }
+ } else {
+ totalBytesProcessed += bytesRead;
+ }
+ }
+}
diff --git a/bmc-common/src/test/java/com/oracle/bmc/http/internal/ResponseHelperTest.java b/bmc-common/src/test/java/com/oracle/bmc/http/internal/ResponseHelperTest.java
index 43ba0a0120d..63de586cdc8 100644
--- a/bmc-common/src/test/java/com/oracle/bmc/http/internal/ResponseHelperTest.java
+++ b/bmc-common/src/test/java/com/oracle/bmc/http/internal/ResponseHelperTest.java
@@ -105,6 +105,7 @@ public void testReadEntity_streamWithConentType() {
verify(response).readEntity(entityType);
verify(headers).addAll(HttpHeaders.CONTENT_TYPE, contentType);
verify(response, never()).bufferEntity();
+ verify(response).getStringHeaders();
verifyNoMoreInteractions(response, statusInfo, headers, mockStream);
}
diff --git a/bmc-common/src/test/java/com/oracle/bmc/io/internal/ContentLengthVerifyingInputStreamTest.java b/bmc-common/src/test/java/com/oracle/bmc/io/internal/ContentLengthVerifyingInputStreamTest.java
new file mode 100644
index 00000000000..78530ce0542
--- /dev/null
+++ b/bmc-common/src/test/java/com/oracle/bmc/io/internal/ContentLengthVerifyingInputStreamTest.java
@@ -0,0 +1,104 @@
+/**
+ * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
+ */
+package com.oracle.bmc.io.internal;
+
+import static org.junit.Assert.*;
+import org.junit.Test;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+
+public class ContentLengthVerifyingInputStreamTest {
+ private static byte[] TEST_BUFFER = "This is a test string".getBytes();
+
+ @Test
+ public void readByte_validInputStream() throws IOException {
+ final InputStream inputStream = createInputStream(TEST_BUFFER);
+ while (inputStream.read() != -1) {}
+ }
+
+ @Test
+ public void readBuffer_validInputStream() throws IOException {
+ final InputStream inputStream = createInputStream(TEST_BUFFER);
+ byte[] buffer = new byte[8];
+ while (inputStream.read(buffer) != -1) {}
+ }
+
+ @Test
+ public void readOffsetBuffer_validInputStream() throws IOException {
+ final InputStream inputStream = createInputStream(TEST_BUFFER);
+ byte[] buffer = new byte[1000];
+ int offset = 0;
+ int bytesRead;
+ while ((bytesRead = inputStream.read(buffer, offset, 2)) != -1) {
+ offset += bytesRead;
+ }
+ }
+
+ @Test
+ public void readSkipMark_validInputStream() throws IOException {
+ final InputStream inputStream = createInputStream(TEST_BUFFER);
+ performReadSkipMark(inputStream);
+ }
+
+ @Test(expected = IOException.class)
+ public void readSkipMark_inputStreamShorterThanExpectedLength_shouldFail() throws IOException {
+ final InputStream inputStream = createInputStream(TEST_BUFFER, 2000);
+ performReadSkipMark(inputStream);
+ }
+
+ @Test(expected = IOException.class)
+ public void readBuffer_inputStreamLongerThanExpectedLength_shouldFail() throws IOException {
+ final InputStream inputStream = createInputStream(TEST_BUFFER, 2);
+ byte[] buffer = new byte[10];
+ while (inputStream.read(buffer) != -1) {}
+ }
+
+ @Test(expected = IOException.class)
+ public void readBuffer_inputStreamShorterThanExpectedLength_shouldFail() throws IOException {
+ final InputStream inputStream = createInputStream(TEST_BUFFER, 2000);
+ byte[] buffer = new byte[10];
+ while (inputStream.read(buffer) != -1) {}
+ }
+
+ @Test
+ public void readSkipMarkReset_inputStreamShorterThanExpectedLength_shouldSucceed()
+ throws IOException {
+ final InputStream inputStream = createInputStream(TEST_BUFFER, 2000);
+ byte[] buffer = new byte[6];
+
+ assertNotEquals(-1, inputStream.read());
+ assertEquals(6, inputStream.read(buffer));
+ inputStream.mark(1);
+ assertEquals(3, inputStream.skip(3));
+ inputStream.skip(5);
+ inputStream.reset();
+ while (inputStream.read() != -1) {}
+ }
+
+ private InputStream createInputStream(final byte[] buffer) {
+ return createInputStream(buffer, buffer.length);
+ }
+
+ private InputStream createInputStream(final byte[] buffer, final long contentLength) {
+ return new ContentLengthVerifyingInputStream(
+ new ByteArrayInputStream(buffer), contentLength);
+ }
+
+ private static void performReadSkipMark(final InputStream inputStream) throws IOException {
+ byte[] buffer = new byte[6];
+
+ assertNotEquals(-1, inputStream.read());
+ assertEquals(6, inputStream.read(buffer));
+ inputStream.mark(1);
+ assertEquals(3, inputStream.skip(3));
+ inputStream.skip(5);
+ assertNotEquals(-1, inputStream.read());
+ assertEquals(3, inputStream.read(buffer, 2, 3));
+ inputStream.mark(2);
+ assertEquals(2, inputStream.read(buffer));
+ while (inputStream.read() != -1) {}
+ }
+}
diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml
index d79d9dd03c8..7798b6669ab 100644
--- a/bmc-containerengine/pom.xml
+++ b/bmc-containerengine/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 1.3.2
+ 1.3.3
../pom.xml
@@ -19,7 +19,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 1.3.2
+ 1.3.3
diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml
index 1188d4a4af8..63e63edf55e 100644
--- a/bmc-core/pom.xml
+++ b/bmc-core/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 1.3.2
+ 1.3.3
../pom.xml
@@ -19,7 +19,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 1.3.2
+ 1.3.3
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java
index a6d66b2a033..c75fb774c84 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java
@@ -1551,7 +1551,7 @@ UpdateLocalPeeringGatewayResponse updateLocalPeeringGateway(
* {@link #deletePublicIp(DeletePublicIpRequest) deletePublicIp}, which
* unassigns and deletes the ephemeral public IP.
*
- **Note:** If a public IP (either ephemeral or reserved) is assigned to a secondary private
+ **Note:** If a public IP is assigned to a secondary private
* IP (see {@link PrivateIp}), and you move that secondary
* private IP to another VNIC, the public IP moves with it.
*
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsync.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsync.java
index 168314f5a11..48816381a89 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsync.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsync.java
@@ -2372,7 +2372,7 @@ java.util.concurrent.Future updatePrivateIp(
* {@link #deletePublicIp(DeletePublicIpRequest, Consumer, Consumer) deletePublicIp}, which
* unassigns and deletes the ephemeral public IP.
*
- **Note:** If a public IP (either ephemeral or reserved) is assigned to a secondary private
+ **Note:** If a public IP is assigned to a secondary private
* IP (see {@link PrivateIp}), and you move that secondary
* private IP to another VNIC, the public IP moves with it.
*
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/AttachParavirtualizedVolumeDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/AttachParavirtualizedVolumeDetails.java
index f7376b52d82..4daf676486e 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/AttachParavirtualizedVolumeDetails.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/AttachParavirtualizedVolumeDetails.java
@@ -66,13 +66,26 @@ public Builder volumeId(String volumeId) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("isPvEncryptionInTransitEnabled")
+ private Boolean isPvEncryptionInTransitEnabled;
+
+ public Builder isPvEncryptionInTransitEnabled(Boolean isPvEncryptionInTransitEnabled) {
+ this.isPvEncryptionInTransitEnabled = isPvEncryptionInTransitEnabled;
+ this.__explicitlySet__.add("isPvEncryptionInTransitEnabled");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
public AttachParavirtualizedVolumeDetails build() {
AttachParavirtualizedVolumeDetails __instance__ =
new AttachParavirtualizedVolumeDetails(
- displayName, instanceId, isReadOnly, volumeId);
+ displayName,
+ instanceId,
+ isReadOnly,
+ volumeId,
+ isPvEncryptionInTransitEnabled);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -83,7 +96,8 @@ public Builder copy(AttachParavirtualizedVolumeDetails o) {
displayName(o.getDisplayName())
.instanceId(o.getInstanceId())
.isReadOnly(o.getIsReadOnly())
- .volumeId(o.getVolumeId());
+ .volumeId(o.getVolumeId())
+ .isPvEncryptionInTransitEnabled(o.getIsPvEncryptionInTransitEnabled());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -99,10 +113,21 @@ public static Builder builder() {
@Deprecated
public AttachParavirtualizedVolumeDetails(
- String displayName, String instanceId, Boolean isReadOnly, String volumeId) {
+ String displayName,
+ String instanceId,
+ Boolean isReadOnly,
+ String volumeId,
+ Boolean isPvEncryptionInTransitEnabled) {
super(displayName, instanceId, isReadOnly, volumeId);
+ this.isPvEncryptionInTransitEnabled = isPvEncryptionInTransitEnabled;
}
+ /**
+ * Whether to enable encryption in transit for the PV data volume attachment. Defaults to false.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("isPvEncryptionInTransitEnabled")
+ Boolean isPvEncryptionInTransitEnabled;
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
}
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BootVolumeAttachment.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BootVolumeAttachment.java
index ead2ec89699..561bba4935a 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BootVolumeAttachment.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BootVolumeAttachment.java
@@ -100,6 +100,15 @@ public Builder timeCreated(java.util.Date timeCreated) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("isPvEncryptionInTransitEnabled")
+ private Boolean isPvEncryptionInTransitEnabled;
+
+ public Builder isPvEncryptionInTransitEnabled(Boolean isPvEncryptionInTransitEnabled) {
+ this.isPvEncryptionInTransitEnabled = isPvEncryptionInTransitEnabled;
+ this.__explicitlySet__.add("isPvEncryptionInTransitEnabled");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
@@ -113,7 +122,8 @@ public BootVolumeAttachment build() {
id,
instanceId,
lifecycleState,
- timeCreated);
+ timeCreated,
+ isPvEncryptionInTransitEnabled);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -128,7 +138,8 @@ public Builder copy(BootVolumeAttachment o) {
.id(o.getId())
.instanceId(o.getInstanceId())
.lifecycleState(o.getLifecycleState())
- .timeCreated(o.getTimeCreated());
+ .timeCreated(o.getTimeCreated())
+ .isPvEncryptionInTransitEnabled(o.getIsPvEncryptionInTransitEnabled());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -247,6 +258,12 @@ public static LifecycleState create(String key) {
@com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
java.util.Date timeCreated;
+ /**
+ * Whether the enable encryption in transit for the PV volume attachment is on or not.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("isPvEncryptionInTransitEnabled")
+ Boolean isPvEncryptionInTransitEnabled;
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
}
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgAttachmentDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgAttachmentDetails.java
index 39e3c6c1af2..e1533abb4e2 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgAttachmentDetails.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgAttachmentDetails.java
@@ -108,6 +108,9 @@ public static Builder builder() {
* If you don't specify a route table here, the DRG attachment is created without an associated route
* table. The Networking service does NOT automatically associate the attached VCN's default route table
* with the DRG attachment.
+ *
+ * For information about why you would associate a route table with a DRG attachment, see
+ * [Advanced Scenario: Transit Routing](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/transitrouting.htm).
*
**/
@com.fasterxml.jackson.annotation.JsonProperty("routeTableId")
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateLocalPeeringGatewayDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateLocalPeeringGatewayDetails.java
index 0574da033b4..808fffda4a3 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateLocalPeeringGatewayDetails.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateLocalPeeringGatewayDetails.java
@@ -158,6 +158,9 @@ public static Builder builder() {
* If you don't specify a route table here, the LPG is created without an associated route
* table. The Networking service does NOT automatically associate the attached VCN's default route table
* with the LPG.
+ *
+ * For information about why you would associate a route table with an LPG, see
+ * [Advanced Scenario: Transit Routing](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/transitrouting.htm).
*
**/
@com.fasterxml.jackson.annotation.JsonProperty("routeTableId")
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnectMapping.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnectMapping.java
index 00bbe6bdd3f..00e8fcdae9e 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnectMapping.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnectMapping.java
@@ -16,7 +16,7 @@
* If you're a customer who is colocated with Oracle, that means you own both
* the virtual circuit and the physical connection it runs on (cross-connect or
* cross-connect group), so you specify all the information in the mapping. There's
- * one exception: for a public virtual circuit, Oracle specifies the BGP IP
+ * one exception: for a public virtual circuit, Oracle specifies the BGP IPv4
* addresses.
*
* If you're a provider, then you own the physical connection that the customer's
@@ -28,7 +28,7 @@
* the provider also specifies the BGP peering information. If the BGP session instead
* goes from Oracle to the customer's edge router, then the customer specifies the BGP
* peering information. There's one exception: for a public virtual circuit, Oracle
- * specifies the BGP IP addresses.
+ * specifies the BGP IPv4 addresses.
*
*
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields
@@ -151,13 +151,13 @@ public static Builder builder() {
String crossConnectOrCrossConnectGroupId;
/**
- * The BGP IP address for the router on the other end of the BGP session from
+ * The BGP IPv4 address for the router on the other end of the BGP session from
* Oracle. Specified by the owner of that router. If the session goes from Oracle
- * to a customer, this is the BGP IP address of the customer's edge router. If the
- * session goes from Oracle to a provider, this is the BGP IP address of the
+ * to a customer, this is the BGP IPv4 address of the customer's edge router. If the
+ * session goes from Oracle to a provider, this is the BGP IPv4 address of the
* provider's edge router. Must use a /30 or /31 subnet mask.
*
- * There's one exception: for a public virtual circuit, Oracle specifies the BGP IP addresses.
+ * There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv4 addresses.
*
* Example: `10.0.0.18/31`
*
@@ -166,12 +166,12 @@ public static Builder builder() {
String customerBgpPeeringIp;
/**
- * The IP address for Oracle's end of the BGP session. Must use a /30 or /31
+ * The IPv4 address for Oracle's end of the BGP session. Must use a /30 or /31
* subnet mask. If the session goes from Oracle to a customer's edge router,
* the customer specifies this information. If the session goes from Oracle to
* a provider's edge router, the provider specifies this.
*
- * There's one exception: for a public virtual circuit, Oracle specifies the BGP IP addresses.
+ * There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv4 addresses.
*
* Example: `10.0.0.19/31`
*
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/DhcpDnsOption.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/DhcpDnsOption.java
index c4bdc2756d6..d6b812e370e 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/DhcpDnsOption.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/DhcpDnsOption.java
@@ -84,7 +84,7 @@ public DhcpDnsOption(java.util.List customDnsServers, ServerType serverT
/**
* If you set `serverType` to `CustomDnsServer`, specify the
- * IP address of at least one DNS server of your choice (three maximum). gd
+ * IP address of at least one DNS server of your choice (three maximum).
*
**/
@com.fasterxml.jackson.annotation.JsonProperty("customDnsServers")
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgAttachment.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgAttachment.java
index 9a6bf19f9b6..ae6181c7a1f 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgAttachment.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgAttachment.java
@@ -221,7 +221,10 @@ public static LifecycleState create(String key) {
LifecycleState lifecycleState;
/**
- * The OCID of the route table the DRG attachment is using.
+ * The OCID of the route table the DRG attachment is using. For information about why you
+ * would associate a route table with a DRG attachment, see
+ * [Advanced Scenario: Transit Routing](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/transitrouting.htm).
+ *
**/
@com.fasterxml.jackson.annotation.JsonProperty("routeTableId")
String routeTableId;
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/IScsiVolumeAttachment.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/IScsiVolumeAttachment.java
index 77e75319630..d53382428be 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/IScsiVolumeAttachment.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/IScsiVolumeAttachment.java
@@ -111,6 +111,15 @@ public Builder volumeId(String volumeId) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("isPvEncryptionInTransitEnabled")
+ private Boolean isPvEncryptionInTransitEnabled;
+
+ public Builder isPvEncryptionInTransitEnabled(Boolean isPvEncryptionInTransitEnabled) {
+ this.isPvEncryptionInTransitEnabled = isPvEncryptionInTransitEnabled;
+ this.__explicitlySet__.add("isPvEncryptionInTransitEnabled");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("chapSecret")
private String chapSecret;
@@ -171,6 +180,7 @@ public IScsiVolumeAttachment build() {
lifecycleState,
timeCreated,
volumeId,
+ isPvEncryptionInTransitEnabled,
chapSecret,
chapUsername,
ipv4,
@@ -192,6 +202,7 @@ public Builder copy(IScsiVolumeAttachment o) {
.lifecycleState(o.getLifecycleState())
.timeCreated(o.getTimeCreated())
.volumeId(o.getVolumeId())
+ .isPvEncryptionInTransitEnabled(o.getIsPvEncryptionInTransitEnabled())
.chapSecret(o.getChapSecret())
.chapUsername(o.getChapUsername())
.ipv4(o.getIpv4())
@@ -221,6 +232,7 @@ public IScsiVolumeAttachment(
LifecycleState lifecycleState,
java.util.Date timeCreated,
String volumeId,
+ Boolean isPvEncryptionInTransitEnabled,
String chapSecret,
String chapUsername,
String ipv4,
@@ -235,7 +247,8 @@ public IScsiVolumeAttachment(
isReadOnly,
lifecycleState,
timeCreated,
- volumeId);
+ volumeId,
+ isPvEncryptionInTransitEnabled);
this.chapSecret = chapSecret;
this.chapUsername = chapUsername;
this.ipv4 = ipv4;
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceDetails.java
index 256209f4307..862a09535db 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceDetails.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceDetails.java
@@ -162,6 +162,15 @@ public Builder subnetId(String subnetId) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("isPvEncryptionInTransitEnabled")
+ private Boolean isPvEncryptionInTransitEnabled;
+
+ public Builder isPvEncryptionInTransitEnabled(Boolean isPvEncryptionInTransitEnabled) {
+ this.isPvEncryptionInTransitEnabled = isPvEncryptionInTransitEnabled;
+ this.__explicitlySet__.add("isPvEncryptionInTransitEnabled");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
@@ -182,7 +191,8 @@ public LaunchInstanceDetails build() {
metadata,
shape,
sourceDetails,
- subnetId);
+ subnetId,
+ isPvEncryptionInTransitEnabled);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -204,7 +214,8 @@ public Builder copy(LaunchInstanceDetails o) {
.metadata(o.getMetadata())
.shape(o.getShape())
.sourceDetails(o.getSourceDetails())
- .subnetId(o.getSubnetId());
+ .subnetId(o.getSubnetId())
+ .isPvEncryptionInTransitEnabled(o.getIsPvEncryptionInTransitEnabled());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -439,6 +450,12 @@ public static Builder builder() {
@com.fasterxml.jackson.annotation.JsonProperty("subnetId")
String subnetId;
+ /**
+ * Whether to enable encryption in transit for the PV boot volume attachment. Defaults to false.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("isPvEncryptionInTransitEnabled")
+ Boolean isPvEncryptionInTransitEnabled;
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
}
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchOptions.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchOptions.java
index e6b1d14a217..52e081bab5a 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchOptions.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchOptions.java
@@ -59,12 +59,26 @@ public Builder remoteDataVolumeType(RemoteDataVolumeType remoteDataVolumeType) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("isPvEncryptionInTransitEnabled")
+ private Boolean isPvEncryptionInTransitEnabled;
+
+ public Builder isPvEncryptionInTransitEnabled(Boolean isPvEncryptionInTransitEnabled) {
+ this.isPvEncryptionInTransitEnabled = isPvEncryptionInTransitEnabled;
+ this.__explicitlySet__.add("isPvEncryptionInTransitEnabled");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
public LaunchOptions build() {
LaunchOptions __instance__ =
- new LaunchOptions(bootVolumeType, firmware, networkType, remoteDataVolumeType);
+ new LaunchOptions(
+ bootVolumeType,
+ firmware,
+ networkType,
+ remoteDataVolumeType,
+ isPvEncryptionInTransitEnabled);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -75,7 +89,8 @@ public Builder copy(LaunchOptions o) {
bootVolumeType(o.getBootVolumeType())
.firmware(o.getFirmware())
.networkType(o.getNetworkType())
- .remoteDataVolumeType(o.getRemoteDataVolumeType());
+ .remoteDataVolumeType(o.getRemoteDataVolumeType())
+ .isPvEncryptionInTransitEnabled(o.getIsPvEncryptionInTransitEnabled());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -351,6 +366,12 @@ public static RemoteDataVolumeType create(String key) {
@com.fasterxml.jackson.annotation.JsonProperty("remoteDataVolumeType")
RemoteDataVolumeType remoteDataVolumeType;
+ /**
+ * Whether to enable encryption in transit for the PV boot volume attachment. Defaults to false.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("isPvEncryptionInTransitEnabled")
+ Boolean isPvEncryptionInTransitEnabled;
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
}
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/LocalPeeringGateway.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/LocalPeeringGateway.java
index 423ce9acd51..c25f48dd249 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/LocalPeeringGateway.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/LocalPeeringGateway.java
@@ -410,7 +410,10 @@ public static PeeringStatus create(String key) {
String peeringStatusDetails;
/**
- * The OCID of the route table the LPG is using.
+ * The OCID of the route table the LPG is using. For information about why you
+ * would associate a route table with an LPG, see
+ * [Advanced Scenario: Transit Routing](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/transitrouting.htm).
+ *
**/
@com.fasterxml.jackson.annotation.JsonProperty("routeTableId")
String routeTableId;
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ParavirtualizedVolumeAttachment.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ParavirtualizedVolumeAttachment.java
index afb528e471d..dde9cf2de7a 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ParavirtualizedVolumeAttachment.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ParavirtualizedVolumeAttachment.java
@@ -111,6 +111,15 @@ public Builder volumeId(String volumeId) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("isPvEncryptionInTransitEnabled")
+ private Boolean isPvEncryptionInTransitEnabled;
+
+ public Builder isPvEncryptionInTransitEnabled(Boolean isPvEncryptionInTransitEnabled) {
+ this.isPvEncryptionInTransitEnabled = isPvEncryptionInTransitEnabled;
+ this.__explicitlySet__.add("isPvEncryptionInTransitEnabled");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
@@ -125,7 +134,8 @@ public ParavirtualizedVolumeAttachment build() {
isReadOnly,
lifecycleState,
timeCreated,
- volumeId);
+ volumeId,
+ isPvEncryptionInTransitEnabled);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -141,7 +151,8 @@ public Builder copy(ParavirtualizedVolumeAttachment o) {
.isReadOnly(o.getIsReadOnly())
.lifecycleState(o.getLifecycleState())
.timeCreated(o.getTimeCreated())
- .volumeId(o.getVolumeId());
+ .volumeId(o.getVolumeId())
+ .isPvEncryptionInTransitEnabled(o.getIsPvEncryptionInTransitEnabled());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -165,7 +176,8 @@ public ParavirtualizedVolumeAttachment(
Boolean isReadOnly,
LifecycleState lifecycleState,
java.util.Date timeCreated,
- String volumeId) {
+ String volumeId,
+ Boolean isPvEncryptionInTransitEnabled) {
super(
availabilityDomain,
compartmentId,
@@ -175,7 +187,8 @@ public ParavirtualizedVolumeAttachment(
isReadOnly,
lifecycleState,
timeCreated,
- volumeId);
+ volumeId,
+ isPvEncryptionInTransitEnabled);
}
@com.fasterxml.jackson.annotation.JsonIgnore
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Service.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Service.java
index b1b84530e1d..474ccba6280 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Service.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Service.java
@@ -111,7 +111,7 @@ public static Builder builder() {
String id;
/**
- * Name of the service.
+ * Name of the service. This name can change and is not guaranteed to be unique.
**/
@com.fasterxml.jackson.annotation.JsonProperty("name")
String name;
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgAttachmentDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgAttachmentDetails.java
index b8f23822217..3de0c5e0000 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgAttachmentDetails.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateDrgAttachmentDetails.java
@@ -78,7 +78,10 @@ public static Builder builder() {
String displayName;
/**
- * The OCID of the route table the DRG attachment will use.
+ * The OCID of the route table the DRG attachment will use. For information about why you
+ * would associate a route table with a DRG attachment, see
+ * [Advanced Scenario: Transit Routing](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/transitrouting.htm).
+ *
**/
@com.fasterxml.jackson.annotation.JsonProperty("routeTableId")
String routeTableId;
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateLocalPeeringGatewayDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateLocalPeeringGatewayDetails.java
index 117d3d19344..01b7d6dabd3 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateLocalPeeringGatewayDetails.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateLocalPeeringGatewayDetails.java
@@ -122,7 +122,10 @@ public static Builder builder() {
java.util.Map freeformTags;
/**
- * The OCID of the route table the LPG will use.
+ * The OCID of the route table the LPG will use. For information about why you
+ * would associate a route table with an LPG, see
+ * [Advanced Scenario: Transit Routing](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/transitrouting.htm).
+ *
**/
@com.fasterxml.jackson.annotation.JsonProperty("routeTableId")
String routeTableId;
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeAttachment.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeAttachment.java
index f29b8e45476..263c98c58fa 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeAttachment.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeAttachment.java
@@ -158,4 +158,10 @@ public static LifecycleState create(String key) {
**/
@com.fasterxml.jackson.annotation.JsonProperty("volumeId")
String volumeId;
+
+ /**
+ * Whether the enable encryption in transit for the PV volume attachment is on or not.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("isPvEncryptionInTransitEnabled")
+ Boolean isPvEncryptionInTransitEnabled;
}
diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackupSchedule.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackupSchedule.java
index f0c8cb0a5c0..ddf7b7dd5a2 100644
--- a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackupSchedule.java
+++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackupSchedule.java
@@ -143,7 +143,7 @@ public static BackupType create(String key) {
BackupType backupType;
/**
- * The number of seconds (positive or negative) that the backup time should be shifted from the default interval boundaries specified by the period.
+ * The number of seconds (positive or negative) that the backup time should be shifted from the default interval boundaries specified by the period. Backup time = Frequency start time + Offset.
**/
@com.fasterxml.jackson.annotation.JsonProperty("offsetSeconds")
Integer offsetSeconds;
diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml
index 96348548e2f..9f4b125329a 100644
--- a/bmc-database/pom.xml
+++ b/bmc-database/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 1.3.2
+ 1.3.3
../pom.xml
@@ -19,7 +19,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 1.3.2
+ 1.3.3
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GenerateAutonomousDataWarehouseWalletConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GenerateAutonomousDataWarehouseWalletConverter.java
index 9aecda9f1e6..cefbd8b9afc 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GenerateAutonomousDataWarehouseWalletConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GenerateAutonomousDataWarehouseWalletConverter.java
@@ -89,6 +89,27 @@ public GenerateAutonomousDataWarehouseWalletResponse apply(
builder.inputStream(response.getItem());
+ com.google.common.base.Optional> etagHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "etag");
+ if (etagHeader.isPresent()) {
+ builder.etag(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "etag", etagHeader.get().get(0), String.class));
+ }
+
+ com.google.common.base.Optional>
+ opcRequestIdHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-request-id");
+ if (opcRequestIdHeader.isPresent()) {
+ builder.opcRequestId(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-request-id",
+ opcRequestIdHeader.get().get(0),
+ String.class));
+ }
+
com.google.common.base.Optional>
contentLengthHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -101,15 +122,6 @@ public GenerateAutonomousDataWarehouseWalletResponse apply(
Long.class));
}
- com.google.common.base.Optional> etagHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "etag");
- if (etagHeader.isPresent()) {
- builder.etag(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "etag", etagHeader.get().get(0), String.class));
- }
-
com.google.common.base.Optional>
lastModifiedHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -122,18 +134,6 @@ public GenerateAutonomousDataWarehouseWalletResponse apply(
java.util.Date.class));
}
- com.google.common.base.Optional>
- opcRequestIdHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-request-id");
- if (opcRequestIdHeader.isPresent()) {
- builder.opcRequestId(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-request-id",
- opcRequestIdHeader.get().get(0),
- String.class));
- }
-
GenerateAutonomousDataWarehouseWalletResponse responseWrapper =
builder.build();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GenerateAutonomousDatabaseWalletConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GenerateAutonomousDatabaseWalletConverter.java
index 210ec0c8f7e..b4d29a7ca35 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GenerateAutonomousDatabaseWalletConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GenerateAutonomousDatabaseWalletConverter.java
@@ -88,6 +88,27 @@ public GenerateAutonomousDatabaseWalletResponse apply(
builder.inputStream(response.getItem());
+ com.google.common.base.Optional> etagHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "etag");
+ if (etagHeader.isPresent()) {
+ builder.etag(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "etag", etagHeader.get().get(0), String.class));
+ }
+
+ com.google.common.base.Optional>
+ opcRequestIdHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-request-id");
+ if (opcRequestIdHeader.isPresent()) {
+ builder.opcRequestId(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-request-id",
+ opcRequestIdHeader.get().get(0),
+ String.class));
+ }
+
com.google.common.base.Optional>
contentLengthHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -100,15 +121,6 @@ public GenerateAutonomousDatabaseWalletResponse apply(
Long.class));
}
- com.google.common.base.Optional> etagHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "etag");
- if (etagHeader.isPresent()) {
- builder.etag(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "etag", etagHeader.get().get(0), String.class));
- }
-
com.google.common.base.Optional>
lastModifiedHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -121,18 +133,6 @@ public GenerateAutonomousDatabaseWalletResponse apply(
java.util.Date.class));
}
- com.google.common.base.Optional>
- opcRequestIdHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-request-id");
- if (opcRequestIdHeader.isPresent()) {
- builder.opcRequestId(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-request-id",
- opcRequestIdHeader.get().get(0),
- String.class));
- }
-
GenerateAutonomousDatabaseWalletResponse responseWrapper =
builder.build();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDataWarehouseBackupsConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDataWarehouseBackupsConverter.java
index 8fc999c9668..3173575ba52 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDataWarehouseBackupsConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDataWarehouseBackupsConverter.java
@@ -137,18 +137,6 @@ public ListAutonomousDataWarehouseBackupsResponse apply(
builder.items(response.getItem());
- com.google.common.base.Optional>
- opcNextPageHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-next-page");
- if (opcNextPageHeader.isPresent()) {
- builder.opcNextPage(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-next-page",
- opcNextPageHeader.get().get(0),
- String.class));
- }
-
com.google.common.base.Optional>
opcRequestIdHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -161,6 +149,18 @@ public ListAutonomousDataWarehouseBackupsResponse apply(
String.class));
}
+ com.google.common.base.Optional>
+ opcNextPageHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-next-page");
+ if (opcNextPageHeader.isPresent()) {
+ builder.opcNextPage(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-next-page",
+ opcNextPageHeader.get().get(0),
+ String.class));
+ }
+
ListAutonomousDataWarehouseBackupsResponse responseWrapper =
builder.build();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDataWarehousesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDataWarehousesConverter.java
index 862c65655e2..c4477368f96 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDataWarehousesConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDataWarehousesConverter.java
@@ -126,18 +126,6 @@ public ListAutonomousDataWarehousesResponse apply(
builder.items(response.getItem());
- com.google.common.base.Optional>
- opcNextPageHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-next-page");
- if (opcNextPageHeader.isPresent()) {
- builder.opcNextPage(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-next-page",
- opcNextPageHeader.get().get(0),
- String.class));
- }
-
com.google.common.base.Optional>
opcRequestIdHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -150,6 +138,18 @@ public ListAutonomousDataWarehousesResponse apply(
String.class));
}
+ com.google.common.base.Optional>
+ opcNextPageHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-next-page");
+ if (opcNextPageHeader.isPresent()) {
+ builder.opcNextPage(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-next-page",
+ opcNextPageHeader.get().get(0),
+ String.class));
+ }
+
ListAutonomousDataWarehousesResponse responseWrapper =
builder.build();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDatabaseBackupsConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDatabaseBackupsConverter.java
index 69a2dc9c90f..ad788cd28da 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDatabaseBackupsConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDatabaseBackupsConverter.java
@@ -140,18 +140,6 @@ public ListAutonomousDatabaseBackupsResponse apply(
builder.items(response.getItem());
- com.google.common.base.Optional>
- opcNextPageHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-next-page");
- if (opcNextPageHeader.isPresent()) {
- builder.opcNextPage(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-next-page",
- opcNextPageHeader.get().get(0),
- String.class));
- }
-
com.google.common.base.Optional>
opcRequestIdHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -164,6 +152,18 @@ public ListAutonomousDatabaseBackupsResponse apply(
String.class));
}
+ com.google.common.base.Optional>
+ opcNextPageHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-next-page");
+ if (opcNextPageHeader.isPresent()) {
+ builder.opcNextPage(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-next-page",
+ opcNextPageHeader.get().get(0),
+ String.class));
+ }
+
ListAutonomousDatabaseBackupsResponse responseWrapper =
builder.build();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDatabasesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDatabasesConverter.java
index a0ca684c12b..f08d93c6832 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDatabasesConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDatabasesConverter.java
@@ -129,18 +129,6 @@ public ListAutonomousDatabasesResponse apply(
builder.items(response.getItem());
- com.google.common.base.Optional>
- opcNextPageHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-next-page");
- if (opcNextPageHeader.isPresent()) {
- builder.opcNextPage(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-next-page",
- opcNextPageHeader.get().get(0),
- String.class));
- }
-
com.google.common.base.Optional>
opcRequestIdHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -153,6 +141,18 @@ public ListAutonomousDatabasesResponse apply(
String.class));
}
+ com.google.common.base.Optional>
+ opcNextPageHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-next-page");
+ if (opcNextPageHeader.isPresent()) {
+ builder.opcNextPage(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-next-page",
+ opcNextPageHeader.get().get(0),
+ String.class));
+ }
+
ListAutonomousDatabasesResponse responseWrapper = builder.build();
return responseWrapper;
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBackupsConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBackupsConverter.java
index 498b4fb2573..3b9b703a4f7 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBackupsConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBackupsConverter.java
@@ -96,18 +96,6 @@ public ListBackupsResponse apply(
builder.items(response.getItem());
- com.google.common.base.Optional>
- opcNextPageHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-next-page");
- if (opcNextPageHeader.isPresent()) {
- builder.opcNextPage(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-next-page",
- opcNextPageHeader.get().get(0),
- String.class));
- }
-
com.google.common.base.Optional>
opcRequestIdHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -120,6 +108,18 @@ public ListBackupsResponse apply(
String.class));
}
+ com.google.common.base.Optional>
+ opcNextPageHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-next-page");
+ if (opcNextPageHeader.isPresent()) {
+ builder.opcNextPage(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-next-page",
+ opcNextPageHeader.get().get(0),
+ String.class));
+ }
+
ListBackupsResponse responseWrapper = builder.build();
return responseWrapper;
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDataGuardAssociationsConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDataGuardAssociationsConverter.java
index 4c935b2bee3..d49443706b4 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDataGuardAssociationsConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDataGuardAssociationsConverter.java
@@ -94,18 +94,6 @@ public ListDataGuardAssociationsResponse apply(
builder.items(response.getItem());
- com.google.common.base.Optional>
- opcNextPageHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-next-page");
- if (opcNextPageHeader.isPresent()) {
- builder.opcNextPage(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-next-page",
- opcNextPageHeader.get().get(0),
- String.class));
- }
-
com.google.common.base.Optional>
opcRequestIdHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -118,6 +106,18 @@ public ListDataGuardAssociationsResponse apply(
String.class));
}
+ com.google.common.base.Optional>
+ opcNextPageHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-next-page");
+ if (opcNextPageHeader.isPresent()) {
+ builder.opcNextPage(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-next-page",
+ opcNextPageHeader.get().get(0),
+ String.class));
+ }
+
ListDataGuardAssociationsResponse responseWrapper = builder.build();
return responseWrapper;
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDatabasesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDatabasesConverter.java
index 456d035fe46..10bb1985e81 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDatabasesConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDatabasesConverter.java
@@ -127,18 +127,6 @@ public ListDatabasesResponse apply(
builder.items(response.getItem());
- com.google.common.base.Optional>
- opcNextPageHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-next-page");
- if (opcNextPageHeader.isPresent()) {
- builder.opcNextPage(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-next-page",
- opcNextPageHeader.get().get(0),
- String.class));
- }
-
com.google.common.base.Optional>
opcRequestIdHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -151,6 +139,18 @@ public ListDatabasesResponse apply(
String.class));
}
+ com.google.common.base.Optional>
+ opcNextPageHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-next-page");
+ if (opcNextPageHeader.isPresent()) {
+ builder.opcNextPage(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-next-page",
+ opcNextPageHeader.get().get(0),
+ String.class));
+ }
+
ListDatabasesResponse responseWrapper = builder.build();
return responseWrapper;
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbHomePatchHistoryEntriesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbHomePatchHistoryEntriesConverter.java
index 7f2a9dc9ee8..9fd97b91411 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbHomePatchHistoryEntriesConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbHomePatchHistoryEntriesConverter.java
@@ -94,18 +94,6 @@ public ListDbHomePatchHistoryEntriesResponse apply(
builder.items(response.getItem());
- com.google.common.base.Optional>
- opcNextPageHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-next-page");
- if (opcNextPageHeader.isPresent()) {
- builder.opcNextPage(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-next-page",
- opcNextPageHeader.get().get(0),
- String.class));
- }
-
com.google.common.base.Optional>
opcRequestIdHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -118,6 +106,18 @@ public ListDbHomePatchHistoryEntriesResponse apply(
String.class));
}
+ com.google.common.base.Optional>
+ opcNextPageHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-next-page");
+ if (opcNextPageHeader.isPresent()) {
+ builder.opcNextPage(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-next-page",
+ opcNextPageHeader.get().get(0),
+ String.class));
+ }
+
ListDbHomePatchHistoryEntriesResponse responseWrapper =
builder.build();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbHomePatchesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbHomePatchesConverter.java
index 552076a7a77..b0ce2b0fc9c 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbHomePatchesConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbHomePatchesConverter.java
@@ -89,18 +89,6 @@ public ListDbHomePatchesResponse apply(
builder.items(response.getItem());
- com.google.common.base.Optional>
- opcNextPageHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-next-page");
- if (opcNextPageHeader.isPresent()) {
- builder.opcNextPage(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-next-page",
- opcNextPageHeader.get().get(0),
- String.class));
- }
-
com.google.common.base.Optional>
opcRequestIdHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -113,6 +101,18 @@ public ListDbHomePatchesResponse apply(
String.class));
}
+ com.google.common.base.Optional>
+ opcNextPageHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-next-page");
+ if (opcNextPageHeader.isPresent()) {
+ builder.opcNextPage(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-next-page",
+ opcNextPageHeader.get().get(0),
+ String.class));
+ }
+
ListDbHomePatchesResponse responseWrapper = builder.build();
return responseWrapper;
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbHomesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbHomesConverter.java
index b16141b0f43..2faa8032e00 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbHomesConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbHomesConverter.java
@@ -126,18 +126,6 @@ public ListDbHomesResponse apply(
builder.items(response.getItem());
- com.google.common.base.Optional>
- opcNextPageHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-next-page");
- if (opcNextPageHeader.isPresent()) {
- builder.opcNextPage(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-next-page",
- opcNextPageHeader.get().get(0),
- String.class));
- }
-
com.google.common.base.Optional>
opcRequestIdHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -150,6 +138,18 @@ public ListDbHomesResponse apply(
String.class));
}
+ com.google.common.base.Optional>
+ opcNextPageHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-next-page");
+ if (opcNextPageHeader.isPresent()) {
+ builder.opcNextPage(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-next-page",
+ opcNextPageHeader.get().get(0),
+ String.class));
+ }
+
ListDbHomesResponse responseWrapper = builder.build();
return responseWrapper;
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbNodesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbNodesConverter.java
index 5d47e7fa7cf..484ff8ed6d7 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbNodesConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbNodesConverter.java
@@ -118,18 +118,6 @@ public ListDbNodesResponse apply(
builder.items(response.getItem());
- com.google.common.base.Optional>
- opcNextPageHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-next-page");
- if (opcNextPageHeader.isPresent()) {
- builder.opcNextPage(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-next-page",
- opcNextPageHeader.get().get(0),
- String.class));
- }
-
com.google.common.base.Optional>
opcRequestIdHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -142,6 +130,18 @@ public ListDbNodesResponse apply(
String.class));
}
+ com.google.common.base.Optional>
+ opcNextPageHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-next-page");
+ if (opcNextPageHeader.isPresent()) {
+ builder.opcNextPage(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-next-page",
+ opcNextPageHeader.get().get(0),
+ String.class));
+ }
+
ListDbNodesResponse responseWrapper = builder.build();
return responseWrapper;
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemPatchHistoryEntriesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemPatchHistoryEntriesConverter.java
index afe6a005aa0..75d7b671b88 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemPatchHistoryEntriesConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemPatchHistoryEntriesConverter.java
@@ -94,18 +94,6 @@ public ListDbSystemPatchHistoryEntriesResponse apply(
builder.items(response.getItem());
- com.google.common.base.Optional>
- opcNextPageHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-next-page");
- if (opcNextPageHeader.isPresent()) {
- builder.opcNextPage(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-next-page",
- opcNextPageHeader.get().get(0),
- String.class));
- }
-
com.google.common.base.Optional>
opcRequestIdHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -118,6 +106,18 @@ public ListDbSystemPatchHistoryEntriesResponse apply(
String.class));
}
+ com.google.common.base.Optional>
+ opcNextPageHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-next-page");
+ if (opcNextPageHeader.isPresent()) {
+ builder.opcNextPage(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-next-page",
+ opcNextPageHeader.get().get(0),
+ String.class));
+ }
+
ListDbSystemPatchHistoryEntriesResponse responseWrapper =
builder.build();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemPatchesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemPatchesConverter.java
index bfde305fabc..b2c91911faa 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemPatchesConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemPatchesConverter.java
@@ -90,18 +90,6 @@ public ListDbSystemPatchesResponse apply(
builder.items(response.getItem());
- com.google.common.base.Optional>
- opcNextPageHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-next-page");
- if (opcNextPageHeader.isPresent()) {
- builder.opcNextPage(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-next-page",
- opcNextPageHeader.get().get(0),
- String.class));
- }
-
com.google.common.base.Optional>
opcRequestIdHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -114,6 +102,18 @@ public ListDbSystemPatchesResponse apply(
String.class));
}
+ com.google.common.base.Optional>
+ opcNextPageHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-next-page");
+ if (opcNextPageHeader.isPresent()) {
+ builder.opcNextPage(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-next-page",
+ opcNextPageHeader.get().get(0),
+ String.class));
+ }
+
ListDbSystemPatchesResponse responseWrapper = builder.build();
return responseWrapper;
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemShapesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemShapesConverter.java
index e5a1070a034..d0946d6d613 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemShapesConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemShapesConverter.java
@@ -97,18 +97,6 @@ public ListDbSystemShapesResponse apply(
builder.items(response.getItem());
- com.google.common.base.Optional>
- opcNextPageHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-next-page");
- if (opcNextPageHeader.isPresent()) {
- builder.opcNextPage(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-next-page",
- opcNextPageHeader.get().get(0),
- String.class));
- }
-
com.google.common.base.Optional>
opcRequestIdHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -121,6 +109,18 @@ public ListDbSystemShapesResponse apply(
String.class));
}
+ com.google.common.base.Optional>
+ opcNextPageHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-next-page");
+ if (opcNextPageHeader.isPresent()) {
+ builder.opcNextPage(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-next-page",
+ opcNextPageHeader.get().get(0),
+ String.class));
+ }
+
ListDbSystemShapesResponse responseWrapper = builder.build();
return responseWrapper;
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemsConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemsConverter.java
index 9fd5925e77c..5872cc3f7bc 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemsConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbSystemsConverter.java
@@ -136,18 +136,6 @@ public ListDbSystemsResponse apply(
builder.items(response.getItem());
- com.google.common.base.Optional>
- opcNextPageHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-next-page");
- if (opcNextPageHeader.isPresent()) {
- builder.opcNextPage(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-next-page",
- opcNextPageHeader.get().get(0),
- String.class));
- }
-
com.google.common.base.Optional>
opcRequestIdHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -160,6 +148,18 @@ public ListDbSystemsResponse apply(
String.class));
}
+ com.google.common.base.Optional>
+ opcNextPageHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-next-page");
+ if (opcNextPageHeader.isPresent()) {
+ builder.opcNextPage(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-next-page",
+ opcNextPageHeader.get().get(0),
+ String.class));
+ }
+
ListDbSystemsResponse responseWrapper = builder.build();
return responseWrapper;
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbVersionsConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbVersionsConverter.java
index 4b4024ffbdb..c58a269ffe9 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbVersionsConverter.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListDbVersionsConverter.java
@@ -104,18 +104,6 @@ public ListDbVersionsResponse apply(
builder.items(response.getItem());
- com.google.common.base.Optional>
- opcNextPageHeader =
- com.oracle.bmc.http.internal.HeaderUtils.get(
- headers, "opc-next-page");
- if (opcNextPageHeader.isPresent()) {
- builder.opcNextPage(
- com.oracle.bmc.http.internal.HeaderUtils.toValue(
- "opc-next-page",
- opcNextPageHeader.get().get(0),
- String.class));
- }
-
com.google.common.base.Optional>
opcRequestIdHeader =
com.oracle.bmc.http.internal.HeaderUtils.get(
@@ -128,6 +116,18 @@ public ListDbVersionsResponse apply(
String.class));
}
+ com.google.common.base.Optional>
+ opcNextPageHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.get(
+ headers, "opc-next-page");
+ if (opcNextPageHeader.isPresent()) {
+ builder.opcNextPage(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-next-page",
+ opcNextPageHeader.get().get(0),
+ String.class));
+ }
+
ListDbVersionsResponse responseWrapper = builder.build();
return responseWrapper;
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouse.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouse.java
index 60e909f9d67..c46a64cd805 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouse.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouse.java
@@ -5,8 +5,6 @@
/**
* An Oracle Autonomous Data Warehouse.
- *
- **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
*
*
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields
@@ -27,6 +25,15 @@ public class AutonomousDataWarehouse {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ private String id;
+
+ public Builder id(String id) {
+ this.id = id;
+ this.__explicitlySet__.add("id");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
private String compartmentId;
@@ -36,13 +43,30 @@ public Builder compartmentId(String compartmentId) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
- private AutonomousDataWarehouseConnectionStrings connectionStrings;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ private LifecycleState lifecycleState;
- public Builder connectionStrings(
- AutonomousDataWarehouseConnectionStrings connectionStrings) {
- this.connectionStrings = connectionStrings;
- this.__explicitlySet__.add("connectionStrings");
+ public Builder lifecycleState(LifecycleState lifecycleState) {
+ this.lifecycleState = lifecycleState;
+ this.__explicitlySet__.add("lifecycleState");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ private String lifecycleDetails;
+
+ public Builder lifecycleDetails(String lifecycleDetails) {
+ this.lifecycleDetails = lifecycleDetails;
+ this.__explicitlySet__.add("lifecycleDetails");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("dbName")
+ private String dbName;
+
+ public Builder dbName(String dbName) {
+ this.dbName = dbName;
+ this.__explicitlySet__.add("dbName");
return this;
}
@@ -64,31 +88,12 @@ public Builder dataStorageSizeInTBs(Integer dataStorageSizeInTBs) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("dbName")
- private String dbName;
-
- public Builder dbName(String dbName) {
- this.dbName = dbName;
- this.__explicitlySet__.add("dbName");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
- private String dbVersion;
-
- public Builder dbVersion(String dbVersion) {
- this.dbVersion = dbVersion;
- this.__explicitlySet__.add("dbVersion");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- private java.util.Map> definedTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
+ private java.util.Date timeCreated;
- public Builder definedTags(
- java.util.Map> definedTags) {
- this.definedTags = definedTags;
- this.__explicitlySet__.add("definedTags");
+ public Builder timeCreated(java.util.Date timeCreated) {
+ this.timeCreated = timeCreated;
+ this.__explicitlySet__.add("timeCreated");
return this;
}
@@ -101,21 +106,22 @@ public Builder displayName(String displayName) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- private java.util.Map freeformTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
+ private String serviceConsoleUrl;
- public Builder freeformTags(java.util.Map freeformTags) {
- this.freeformTags = freeformTags;
- this.__explicitlySet__.add("freeformTags");
+ public Builder serviceConsoleUrl(String serviceConsoleUrl) {
+ this.serviceConsoleUrl = serviceConsoleUrl;
+ this.__explicitlySet__.add("serviceConsoleUrl");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private String id;
+ @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
+ private AutonomousDataWarehouseConnectionStrings connectionStrings;
- public Builder id(String id) {
- this.id = id;
- this.__explicitlySet__.add("id");
+ public Builder connectionStrings(
+ AutonomousDataWarehouseConnectionStrings connectionStrings) {
+ this.connectionStrings = connectionStrings;
+ this.__explicitlySet__.add("connectionStrings");
return this;
}
@@ -128,39 +134,31 @@ public Builder licenseModel(LicenseModel licenseModel) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- private String lifecycleDetails;
-
- public Builder lifecycleDetails(String lifecycleDetails) {
- this.lifecycleDetails = lifecycleDetails;
- this.__explicitlySet__.add("lifecycleDetails");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- private LifecycleState lifecycleState;
+ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
+ private java.util.Map freeformTags;
- public Builder lifecycleState(LifecycleState lifecycleState) {
- this.lifecycleState = lifecycleState;
- this.__explicitlySet__.add("lifecycleState");
+ public Builder freeformTags(java.util.Map freeformTags) {
+ this.freeformTags = freeformTags;
+ this.__explicitlySet__.add("freeformTags");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
- private String serviceConsoleUrl;
+ @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
+ private java.util.Map> definedTags;
- public Builder serviceConsoleUrl(String serviceConsoleUrl) {
- this.serviceConsoleUrl = serviceConsoleUrl;
- this.__explicitlySet__.add("serviceConsoleUrl");
+ public Builder definedTags(
+ java.util.Map> definedTags) {
+ this.definedTags = definedTags;
+ this.__explicitlySet__.add("definedTags");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
- private java.util.Date timeCreated;
+ @com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
+ private String dbVersion;
- public Builder timeCreated(java.util.Date timeCreated) {
- this.timeCreated = timeCreated;
- this.__explicitlySet__.add("timeCreated");
+ public Builder dbVersion(String dbVersion) {
+ this.dbVersion = dbVersion;
+ this.__explicitlySet__.add("dbVersion");
return this;
}
@@ -170,21 +168,21 @@ public Builder timeCreated(java.util.Date timeCreated) {
public AutonomousDataWarehouse build() {
AutonomousDataWarehouse __instance__ =
new AutonomousDataWarehouse(
+ id,
compartmentId,
- connectionStrings,
+ lifecycleState,
+ lifecycleDetails,
+ dbName,
cpuCoreCount,
dataStorageSizeInTBs,
- dbName,
- dbVersion,
- definedTags,
+ timeCreated,
displayName,
- freeformTags,
- id,
- licenseModel,
- lifecycleDetails,
- lifecycleState,
serviceConsoleUrl,
- timeCreated);
+ connectionStrings,
+ licenseModel,
+ freeformTags,
+ definedTags,
+ dbVersion);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -192,21 +190,21 @@ public AutonomousDataWarehouse build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(AutonomousDataWarehouse o) {
Builder copiedBuilder =
- compartmentId(o.getCompartmentId())
- .connectionStrings(o.getConnectionStrings())
+ id(o.getId())
+ .compartmentId(o.getCompartmentId())
+ .lifecycleState(o.getLifecycleState())
+ .lifecycleDetails(o.getLifecycleDetails())
+ .dbName(o.getDbName())
.cpuCoreCount(o.getCpuCoreCount())
.dataStorageSizeInTBs(o.getDataStorageSizeInTBs())
- .dbName(o.getDbName())
- .dbVersion(o.getDbVersion())
- .definedTags(o.getDefinedTags())
+ .timeCreated(o.getTimeCreated())
.displayName(o.getDisplayName())
- .freeformTags(o.getFreeformTags())
- .id(o.getId())
- .licenseModel(o.getLicenseModel())
- .lifecycleDetails(o.getLifecycleDetails())
- .lifecycleState(o.getLifecycleState())
.serviceConsoleUrl(o.getServiceConsoleUrl())
- .timeCreated(o.getTimeCreated());
+ .connectionStrings(o.getConnectionStrings())
+ .licenseModel(o.getLicenseModel())
+ .freeformTags(o.getFreeformTags())
+ .definedTags(o.getDefinedTags())
+ .dbVersion(o.getDbVersion());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -220,29 +218,84 @@ public static Builder builder() {
return new Builder();
}
+ /**
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ String id;
+
/**
* The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
**/
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
String compartmentId;
-
/**
- * The connection string used to connect to the Data Warehouse. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Data Warehouse for the password value.
+ * The current state of the database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
- AutonomousDataWarehouseConnectionStrings connectionStrings;
+ @lombok.extern.slf4j.Slf4j
+ public enum LifecycleState {
+ Provisioning("PROVISIONING"),
+ Available("AVAILABLE"),
+ Stopping("STOPPING"),
+ Stopped("STOPPED"),
+ Starting("STARTING"),
+ Terminating("TERMINATING"),
+ Terminated("TERMINATED"),
+ Unavailable("UNAVAILABLE"),
+ RestoreInProgress("RESTORE_IN_PROGRESS"),
+ BackupInProgress("BACKUP_IN_PROGRESS"),
+ ScaleInProgress("SCALE_IN_PROGRESS"),
+ AvailableNeedsAttention("AVAILABLE_NEEDS_ATTENTION"),
+
+ /**
+ * This value is used if a service returns a value for this enum that is not recognized by this
+ * version of the SDK.
+ */
+ UnknownEnumValue(null);
+ private final String value;
+ private static java.util.Map map;
+
+ static {
+ map = new java.util.HashMap<>();
+ for (LifecycleState v : LifecycleState.values()) {
+ if (v != UnknownEnumValue) {
+ map.put(v.getValue(), v);
+ }
+ }
+ }
+
+ LifecycleState(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static LifecycleState create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ LOG.warn(
+ "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
+ key);
+ return UnknownEnumValue;
+ }
+ };
/**
- * The number of CPU cores to be made available to the database.
+ * The current state of the database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount")
- Integer cpuCoreCount;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ LifecycleState lifecycleState;
/**
- * The quantity of data in the database, in terabytes.
+ * Information about the current lifecycle state.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInTBs")
- Integer dataStorageSizeInTBs;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ String lifecycleDetails;
/**
* The database name.
@@ -251,20 +304,22 @@ public static Builder builder() {
String dbName;
/**
- * A valid Oracle Database version for Autonomous Data Warehouse.
+ * The number of CPU cores to be made available to the database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
- String dbVersion;
+ @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount")
+ Integer cpuCoreCount;
/**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace.
- * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
- *
- * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
- *
+ * The quantity of data in the database, in terabytes.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- java.util.Map> definedTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInTBs")
+ Integer dataStorageSizeInTBs;
+
+ /**
+ * The date and time the database was created.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
+ java.util.Date timeCreated;
/**
* The user-friendly name for the Autonomous Data Warehouse. The name does not have to be unique.
@@ -273,20 +328,16 @@ public static Builder builder() {
String displayName;
/**
- * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
- * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
- *
- * Example: `{\"Department\": \"Finance\"}`
- *
+ * The URL of the Service Console for the Data Warehouse.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- java.util.Map freeformTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
+ String serviceConsoleUrl;
/**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse.
+ * The connection string used to connect to the Data Warehouse. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Data Warehouse for the password value.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- String id;
+ @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
+ AutonomousDataWarehouseConnectionStrings connectionStrings;
/**
* The Oracle license model that applies to the Oracle Autonomous Data Warehouse. The default is BRING_YOUR_OWN_LICENSE.
*
@@ -342,83 +393,30 @@ public static LicenseModel create(String key) {
LicenseModel licenseModel;
/**
- * Information about the current lifecycle state.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- String lifecycleDetails;
- /**
- * The current state of the database.
- **/
- @lombok.extern.slf4j.Slf4j
- public enum LifecycleState {
- Provisioning("PROVISIONING"),
- Available("AVAILABLE"),
- Stopping("STOPPING"),
- Stopped("STOPPED"),
- Starting("STARTING"),
- Terminating("TERMINATING"),
- Terminated("TERMINATED"),
- Unavailable("UNAVAILABLE"),
- RestoreInProgress("RESTORE_IN_PROGRESS"),
- BackupInProgress("BACKUP_IN_PROGRESS"),
- ScaleInProgress("SCALE_IN_PROGRESS"),
- AvailableNeedsAttention("AVAILABLE_NEEDS_ATTENTION"),
-
- /**
- * This value is used if a service returns a value for this enum that is not recognized by this
- * version of the SDK.
- */
- UnknownEnumValue(null);
-
- private final String value;
- private static java.util.Map map;
-
- static {
- map = new java.util.HashMap<>();
- for (LifecycleState v : LifecycleState.values()) {
- if (v != UnknownEnumValue) {
- map.put(v.getValue(), v);
- }
- }
- }
-
- LifecycleState(String value) {
- this.value = value;
- }
-
- @com.fasterxml.jackson.annotation.JsonValue
- public String getValue() {
- return value;
- }
-
- @com.fasterxml.jackson.annotation.JsonCreator
- public static LifecycleState create(String key) {
- if (map.containsKey(key)) {
- return map.get(key);
- }
- LOG.warn(
- "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
- key);
- return UnknownEnumValue;
- }
- };
- /**
- * The current state of the database.
+ * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
+ * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
+ *
+ * Example: `{\"Department\": \"Finance\"}`
+ *
**/
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- LifecycleState lifecycleState;
+ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
+ java.util.Map freeformTags;
/**
- * The URL of the Service Console for the Data Warehouse.
+ * Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
+ *
+ * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+ *
**/
- @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
- String serviceConsoleUrl;
+ @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
+ java.util.Map> definedTags;
/**
- * The date and time the database was created.
+ * A valid Oracle Database version for Autonomous Data Warehouse.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
- java.util.Date timeCreated;
+ @com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
+ String dbVersion;
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouseBackup.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouseBackup.java
index 346538bf01f..63ff1faca0e 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouseBackup.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouseBackup.java
@@ -5,9 +5,6 @@
/**
* An Autonomous Data Warehouse backup.
- * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
- *
- **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
*
*
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields
@@ -28,12 +25,12 @@ public class AutonomousDataWarehouseBackup {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
- @com.fasterxml.jackson.annotation.JsonProperty("autonomousDataWarehouseId")
- private String autonomousDataWarehouseId;
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ private String id;
- public Builder autonomousDataWarehouseId(String autonomousDataWarehouseId) {
- this.autonomousDataWarehouseId = autonomousDataWarehouseId;
- this.__explicitlySet__.add("autonomousDataWarehouseId");
+ public Builder id(String id) {
+ this.id = id;
+ this.__explicitlySet__.add("id");
return this;
}
@@ -46,6 +43,15 @@ public Builder compartmentId(String compartmentId) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("autonomousDataWarehouseId")
+ private String autonomousDataWarehouseId;
+
+ public Builder autonomousDataWarehouseId(String autonomousDataWarehouseId) {
+ this.autonomousDataWarehouseId = autonomousDataWarehouseId;
+ this.__explicitlySet__.add("autonomousDataWarehouseId");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("displayName")
private String displayName;
@@ -55,12 +61,12 @@ public Builder displayName(String displayName) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private String id;
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ private Type type;
- public Builder id(String id) {
- this.id = id;
- this.__explicitlySet__.add("id");
+ public Builder type(Type type) {
+ this.type = type;
+ this.__explicitlySet__.add("type");
return this;
}
@@ -73,21 +79,12 @@ public Builder isAutomatic(Boolean isAutomatic) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- private String lifecycleDetails;
-
- public Builder lifecycleDetails(String lifecycleDetails) {
- this.lifecycleDetails = lifecycleDetails;
- this.__explicitlySet__.add("lifecycleDetails");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- private LifecycleState lifecycleState;
+ @com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
+ private java.util.Date timeStarted;
- public Builder lifecycleState(LifecycleState lifecycleState) {
- this.lifecycleState = lifecycleState;
- this.__explicitlySet__.add("lifecycleState");
+ public Builder timeStarted(java.util.Date timeStarted) {
+ this.timeStarted = timeStarted;
+ this.__explicitlySet__.add("timeStarted");
return this;
}
@@ -100,21 +97,21 @@ public Builder timeEnded(java.util.Date timeEnded) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
- private java.util.Date timeStarted;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ private String lifecycleDetails;
- public Builder timeStarted(java.util.Date timeStarted) {
- this.timeStarted = timeStarted;
- this.__explicitlySet__.add("timeStarted");
+ public Builder lifecycleDetails(String lifecycleDetails) {
+ this.lifecycleDetails = lifecycleDetails;
+ this.__explicitlySet__.add("lifecycleDetails");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("type")
- private Type type;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ private LifecycleState lifecycleState;
- public Builder type(Type type) {
- this.type = type;
- this.__explicitlySet__.add("type");
+ public Builder lifecycleState(LifecycleState lifecycleState) {
+ this.lifecycleState = lifecycleState;
+ this.__explicitlySet__.add("lifecycleState");
return this;
}
@@ -124,16 +121,16 @@ public Builder type(Type type) {
public AutonomousDataWarehouseBackup build() {
AutonomousDataWarehouseBackup __instance__ =
new AutonomousDataWarehouseBackup(
- autonomousDataWarehouseId,
+ id,
compartmentId,
+ autonomousDataWarehouseId,
displayName,
- id,
+ type,
isAutomatic,
- lifecycleDetails,
- lifecycleState,
- timeEnded,
timeStarted,
- type);
+ timeEnded,
+ lifecycleDetails,
+ lifecycleState);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -141,16 +138,16 @@ public AutonomousDataWarehouseBackup build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(AutonomousDataWarehouseBackup o) {
Builder copiedBuilder =
- autonomousDataWarehouseId(o.getAutonomousDataWarehouseId())
+ id(o.getId())
.compartmentId(o.getCompartmentId())
+ .autonomousDataWarehouseId(o.getAutonomousDataWarehouseId())
.displayName(o.getDisplayName())
- .id(o.getId())
+ .type(o.getType())
.isAutomatic(o.getIsAutomatic())
- .lifecycleDetails(o.getLifecycleDetails())
- .lifecycleState(o.getLifecycleState())
- .timeEnded(o.getTimeEnded())
.timeStarted(o.getTimeStarted())
- .type(o.getType());
+ .timeEnded(o.getTimeEnded())
+ .lifecycleDetails(o.getLifecycleDetails())
+ .lifecycleState(o.getLifecycleState());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -165,10 +162,10 @@ public static Builder builder() {
}
/**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse.
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("autonomousDataWarehouseId")
- String autonomousDataWarehouseId;
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ String id;
/**
* The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
@@ -177,38 +174,23 @@ public static Builder builder() {
String compartmentId;
/**
- * The user-friendly name for the backup. The name does not have to be unique.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("displayName")
- String displayName;
-
- /**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- String id;
-
- /**
- * Indicates whether the backup is user-initiated or automatic.
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("isAutomatic")
- Boolean isAutomatic;
+ @com.fasterxml.jackson.annotation.JsonProperty("autonomousDataWarehouseId")
+ String autonomousDataWarehouseId;
/**
- * Additional information about the current lifecycle state.
+ * The user-friendly name for the backup. The name does not have to be unique.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- String lifecycleDetails;
+ @com.fasterxml.jackson.annotation.JsonProperty("displayName")
+ String displayName;
/**
- * The current state of the backup.
+ * The type of backup.
**/
@lombok.extern.slf4j.Slf4j
- public enum LifecycleState {
- Creating("CREATING"),
- Active("ACTIVE"),
- Deleting("DELETING"),
- Deleted("DELETED"),
- Failed("FAILED"),
+ public enum Type {
+ Incremental("INCREMENTAL"),
+ Full("FULL"),
/**
* This value is used if a service returns a value for this enum that is not recognized by this
@@ -217,18 +199,18 @@ public enum LifecycleState {
UnknownEnumValue(null);
private final String value;
- private static java.util.Map map;
+ private static java.util.Map map;
static {
map = new java.util.HashMap<>();
- for (LifecycleState v : LifecycleState.values()) {
+ for (Type v : Type.values()) {
if (v != UnknownEnumValue) {
map.put(v.getValue(), v);
}
}
}
- LifecycleState(String value) {
+ Type(String value) {
this.value = value;
}
@@ -238,40 +220,54 @@ public String getValue() {
}
@com.fasterxml.jackson.annotation.JsonCreator
- public static LifecycleState create(String key) {
+ public static Type create(String key) {
if (map.containsKey(key)) {
return map.get(key);
}
LOG.warn(
- "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
- key);
+ "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key);
return UnknownEnumValue;
}
};
/**
- * The current state of the backup.
+ * The type of backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- LifecycleState lifecycleState;
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ Type type;
/**
- * The date and time the backup completed.
+ * Indicates whether the backup is user-initiated or automatic.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("timeEnded")
- java.util.Date timeEnded;
+ @com.fasterxml.jackson.annotation.JsonProperty("isAutomatic")
+ Boolean isAutomatic;
/**
* The date and time the backup started.
**/
@com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
java.util.Date timeStarted;
+
/**
- * The type of backup.
+ * The date and time the backup completed.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("timeEnded")
+ java.util.Date timeEnded;
+
+ /**
+ * Additional information about the current lifecycle state.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ String lifecycleDetails;
+ /**
+ * The current state of the backup.
**/
@lombok.extern.slf4j.Slf4j
- public enum Type {
- Incremental("INCREMENTAL"),
- Full("FULL"),
+ public enum LifecycleState {
+ Creating("CREATING"),
+ Active("ACTIVE"),
+ Deleting("DELETING"),
+ Deleted("DELETED"),
+ Failed("FAILED"),
/**
* This value is used if a service returns a value for this enum that is not recognized by this
@@ -280,18 +276,18 @@ public enum Type {
UnknownEnumValue(null);
private final String value;
- private static java.util.Map map;
+ private static java.util.Map map;
static {
map = new java.util.HashMap<>();
- for (Type v : Type.values()) {
+ for (LifecycleState v : LifecycleState.values()) {
if (v != UnknownEnumValue) {
map.put(v.getValue(), v);
}
}
}
- Type(String value) {
+ LifecycleState(String value) {
this.value = value;
}
@@ -301,20 +297,21 @@ public String getValue() {
}
@com.fasterxml.jackson.annotation.JsonCreator
- public static Type create(String key) {
+ public static LifecycleState create(String key) {
if (map.containsKey(key)) {
return map.get(key);
}
LOG.warn(
- "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key);
+ "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
+ key);
return UnknownEnumValue;
}
};
/**
- * The type of backup.
+ * The current state of the backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("type")
- Type type;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ LifecycleState lifecycleState;
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouseBackupSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouseBackupSummary.java
index 1521f2718c5..db67c134c92 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouseBackupSummary.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouseBackupSummary.java
@@ -28,12 +28,12 @@ public class AutonomousDataWarehouseBackupSummary {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
- @com.fasterxml.jackson.annotation.JsonProperty("autonomousDataWarehouseId")
- private String autonomousDataWarehouseId;
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ private String id;
- public Builder autonomousDataWarehouseId(String autonomousDataWarehouseId) {
- this.autonomousDataWarehouseId = autonomousDataWarehouseId;
- this.__explicitlySet__.add("autonomousDataWarehouseId");
+ public Builder id(String id) {
+ this.id = id;
+ this.__explicitlySet__.add("id");
return this;
}
@@ -46,6 +46,15 @@ public Builder compartmentId(String compartmentId) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("autonomousDataWarehouseId")
+ private String autonomousDataWarehouseId;
+
+ public Builder autonomousDataWarehouseId(String autonomousDataWarehouseId) {
+ this.autonomousDataWarehouseId = autonomousDataWarehouseId;
+ this.__explicitlySet__.add("autonomousDataWarehouseId");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("displayName")
private String displayName;
@@ -55,12 +64,12 @@ public Builder displayName(String displayName) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private String id;
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ private Type type;
- public Builder id(String id) {
- this.id = id;
- this.__explicitlySet__.add("id");
+ public Builder type(Type type) {
+ this.type = type;
+ this.__explicitlySet__.add("type");
return this;
}
@@ -73,21 +82,12 @@ public Builder isAutomatic(Boolean isAutomatic) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- private String lifecycleDetails;
-
- public Builder lifecycleDetails(String lifecycleDetails) {
- this.lifecycleDetails = lifecycleDetails;
- this.__explicitlySet__.add("lifecycleDetails");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- private LifecycleState lifecycleState;
+ @com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
+ private java.util.Date timeStarted;
- public Builder lifecycleState(LifecycleState lifecycleState) {
- this.lifecycleState = lifecycleState;
- this.__explicitlySet__.add("lifecycleState");
+ public Builder timeStarted(java.util.Date timeStarted) {
+ this.timeStarted = timeStarted;
+ this.__explicitlySet__.add("timeStarted");
return this;
}
@@ -100,21 +100,21 @@ public Builder timeEnded(java.util.Date timeEnded) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
- private java.util.Date timeStarted;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ private String lifecycleDetails;
- public Builder timeStarted(java.util.Date timeStarted) {
- this.timeStarted = timeStarted;
- this.__explicitlySet__.add("timeStarted");
+ public Builder lifecycleDetails(String lifecycleDetails) {
+ this.lifecycleDetails = lifecycleDetails;
+ this.__explicitlySet__.add("lifecycleDetails");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("type")
- private Type type;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ private LifecycleState lifecycleState;
- public Builder type(Type type) {
- this.type = type;
- this.__explicitlySet__.add("type");
+ public Builder lifecycleState(LifecycleState lifecycleState) {
+ this.lifecycleState = lifecycleState;
+ this.__explicitlySet__.add("lifecycleState");
return this;
}
@@ -124,16 +124,16 @@ public Builder type(Type type) {
public AutonomousDataWarehouseBackupSummary build() {
AutonomousDataWarehouseBackupSummary __instance__ =
new AutonomousDataWarehouseBackupSummary(
- autonomousDataWarehouseId,
+ id,
compartmentId,
+ autonomousDataWarehouseId,
displayName,
- id,
+ type,
isAutomatic,
- lifecycleDetails,
- lifecycleState,
- timeEnded,
timeStarted,
- type);
+ timeEnded,
+ lifecycleDetails,
+ lifecycleState);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -141,16 +141,16 @@ public AutonomousDataWarehouseBackupSummary build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(AutonomousDataWarehouseBackupSummary o) {
Builder copiedBuilder =
- autonomousDataWarehouseId(o.getAutonomousDataWarehouseId())
+ id(o.getId())
.compartmentId(o.getCompartmentId())
+ .autonomousDataWarehouseId(o.getAutonomousDataWarehouseId())
.displayName(o.getDisplayName())
- .id(o.getId())
+ .type(o.getType())
.isAutomatic(o.getIsAutomatic())
- .lifecycleDetails(o.getLifecycleDetails())
- .lifecycleState(o.getLifecycleState())
- .timeEnded(o.getTimeEnded())
.timeStarted(o.getTimeStarted())
- .type(o.getType());
+ .timeEnded(o.getTimeEnded())
+ .lifecycleDetails(o.getLifecycleDetails())
+ .lifecycleState(o.getLifecycleState());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -165,10 +165,10 @@ public static Builder builder() {
}
/**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse.
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("autonomousDataWarehouseId")
- String autonomousDataWarehouseId;
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ String id;
/**
* The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
@@ -177,38 +177,23 @@ public static Builder builder() {
String compartmentId;
/**
- * The user-friendly name for the backup. The name does not have to be unique.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("displayName")
- String displayName;
-
- /**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- String id;
-
- /**
- * Indicates whether the backup is user-initiated or automatic.
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("isAutomatic")
- Boolean isAutomatic;
+ @com.fasterxml.jackson.annotation.JsonProperty("autonomousDataWarehouseId")
+ String autonomousDataWarehouseId;
/**
- * Additional information about the current lifecycle state.
+ * The user-friendly name for the backup. The name does not have to be unique.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- String lifecycleDetails;
+ @com.fasterxml.jackson.annotation.JsonProperty("displayName")
+ String displayName;
/**
- * The current state of the backup.
+ * The type of backup.
**/
@lombok.extern.slf4j.Slf4j
- public enum LifecycleState {
- Creating("CREATING"),
- Active("ACTIVE"),
- Deleting("DELETING"),
- Deleted("DELETED"),
- Failed("FAILED"),
+ public enum Type {
+ Incremental("INCREMENTAL"),
+ Full("FULL"),
/**
* This value is used if a service returns a value for this enum that is not recognized by this
@@ -217,18 +202,18 @@ public enum LifecycleState {
UnknownEnumValue(null);
private final String value;
- private static java.util.Map map;
+ private static java.util.Map map;
static {
map = new java.util.HashMap<>();
- for (LifecycleState v : LifecycleState.values()) {
+ for (Type v : Type.values()) {
if (v != UnknownEnumValue) {
map.put(v.getValue(), v);
}
}
}
- LifecycleState(String value) {
+ Type(String value) {
this.value = value;
}
@@ -238,40 +223,54 @@ public String getValue() {
}
@com.fasterxml.jackson.annotation.JsonCreator
- public static LifecycleState create(String key) {
+ public static Type create(String key) {
if (map.containsKey(key)) {
return map.get(key);
}
LOG.warn(
- "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
- key);
+ "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key);
return UnknownEnumValue;
}
};
/**
- * The current state of the backup.
+ * The type of backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- LifecycleState lifecycleState;
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ Type type;
/**
- * The date and time the backup completed.
+ * Indicates whether the backup is user-initiated or automatic.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("timeEnded")
- java.util.Date timeEnded;
+ @com.fasterxml.jackson.annotation.JsonProperty("isAutomatic")
+ Boolean isAutomatic;
/**
* The date and time the backup started.
**/
@com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
java.util.Date timeStarted;
+
/**
- * The type of backup.
+ * The date and time the backup completed.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("timeEnded")
+ java.util.Date timeEnded;
+
+ /**
+ * Additional information about the current lifecycle state.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ String lifecycleDetails;
+ /**
+ * The current state of the backup.
**/
@lombok.extern.slf4j.Slf4j
- public enum Type {
- Incremental("INCREMENTAL"),
- Full("FULL"),
+ public enum LifecycleState {
+ Creating("CREATING"),
+ Active("ACTIVE"),
+ Deleting("DELETING"),
+ Deleted("DELETED"),
+ Failed("FAILED"),
/**
* This value is used if a service returns a value for this enum that is not recognized by this
@@ -280,18 +279,18 @@ public enum Type {
UnknownEnumValue(null);
private final String value;
- private static java.util.Map map;
+ private static java.util.Map map;
static {
map = new java.util.HashMap<>();
- for (Type v : Type.values()) {
+ for (LifecycleState v : LifecycleState.values()) {
if (v != UnknownEnumValue) {
map.put(v.getValue(), v);
}
}
}
- Type(String value) {
+ LifecycleState(String value) {
this.value = value;
}
@@ -301,20 +300,21 @@ public String getValue() {
}
@com.fasterxml.jackson.annotation.JsonCreator
- public static Type create(String key) {
+ public static LifecycleState create(String key) {
if (map.containsKey(key)) {
return map.get(key);
}
LOG.warn(
- "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key);
+ "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
+ key);
return UnknownEnumValue;
}
};
/**
- * The type of backup.
+ * The current state of the backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("type")
- Type type;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ LifecycleState lifecycleState;
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouseConnectionStrings.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouseConnectionStrings.java
index 0c823d256b9..caf9faf5758 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouseConnectionStrings.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouseConnectionStrings.java
@@ -25,15 +25,6 @@ public class AutonomousDataWarehouseConnectionStrings {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
- @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings")
- private java.util.Map allConnectionStrings;
-
- public Builder allConnectionStrings(java.util.Map allConnectionStrings) {
- this.allConnectionStrings = allConnectionStrings;
- this.__explicitlySet__.add("allConnectionStrings");
- return this;
- }
-
@com.fasterxml.jackson.annotation.JsonProperty("high")
private String high;
@@ -43,6 +34,15 @@ public Builder high(String high) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("medium")
+ private String medium;
+
+ public Builder medium(String medium) {
+ this.medium = medium;
+ this.__explicitlySet__.add("medium");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("low")
private String low;
@@ -52,12 +52,12 @@ public Builder low(String low) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("medium")
- private String medium;
+ @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings")
+ private java.util.Map allConnectionStrings;
- public Builder medium(String medium) {
- this.medium = medium;
- this.__explicitlySet__.add("medium");
+ public Builder allConnectionStrings(java.util.Map allConnectionStrings) {
+ this.allConnectionStrings = allConnectionStrings;
+ this.__explicitlySet__.add("allConnectionStrings");
return this;
}
@@ -67,7 +67,7 @@ public Builder medium(String medium) {
public AutonomousDataWarehouseConnectionStrings build() {
AutonomousDataWarehouseConnectionStrings __instance__ =
new AutonomousDataWarehouseConnectionStrings(
- allConnectionStrings, high, low, medium);
+ high, medium, low, allConnectionStrings);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -75,10 +75,10 @@ public AutonomousDataWarehouseConnectionStrings build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(AutonomousDataWarehouseConnectionStrings o) {
Builder copiedBuilder =
- allConnectionStrings(o.getAllConnectionStrings())
- .high(o.getHigh())
+ high(o.getHigh())
+ .medium(o.getMedium())
.low(o.getLow())
- .medium(o.getMedium());
+ .allConnectionStrings(o.getAllConnectionStrings());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -92,18 +92,18 @@ public static Builder builder() {
return new Builder();
}
- /**
- * All connection strings to use to connect to the Data Warehouse.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings")
- java.util.Map allConnectionStrings;
-
/**
* The High database service provides the highest level of resources to each SQL statement resulting in the highest performance, but supports the fewest number of concurrent SQL statements.
**/
@com.fasterxml.jackson.annotation.JsonProperty("high")
String high;
+ /**
+ * The Medium database service provides a lower level of resources to each SQL statement potentially resulting a lower level of performance, but supports more concurrent SQL statements.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("medium")
+ String medium;
+
/**
* The Low database service provides the least level of resources to each SQL statement, but supports the most number of concurrent SQL statements.
**/
@@ -111,10 +111,10 @@ public static Builder builder() {
String low;
/**
- * The Medium database service provides a lower level of resources to each SQL statement potentially resulting a lower level of performance, but supports more concurrent SQL statements.
+ * All connection strings to use to connect to the Data Warehouse.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("medium")
- String medium;
+ @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings")
+ java.util.Map allConnectionStrings;
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouseSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouseSummary.java
index fc9dac3ff5b..dcc7cb498e3 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouseSummary.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDataWarehouseSummary.java
@@ -27,6 +27,15 @@ public class AutonomousDataWarehouseSummary {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ private String id;
+
+ public Builder id(String id) {
+ this.id = id;
+ this.__explicitlySet__.add("id");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
private String compartmentId;
@@ -36,13 +45,30 @@ public Builder compartmentId(String compartmentId) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
- private AutonomousDataWarehouseConnectionStrings connectionStrings;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ private LifecycleState lifecycleState;
- public Builder connectionStrings(
- AutonomousDataWarehouseConnectionStrings connectionStrings) {
- this.connectionStrings = connectionStrings;
- this.__explicitlySet__.add("connectionStrings");
+ public Builder lifecycleState(LifecycleState lifecycleState) {
+ this.lifecycleState = lifecycleState;
+ this.__explicitlySet__.add("lifecycleState");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ private String lifecycleDetails;
+
+ public Builder lifecycleDetails(String lifecycleDetails) {
+ this.lifecycleDetails = lifecycleDetails;
+ this.__explicitlySet__.add("lifecycleDetails");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("dbName")
+ private String dbName;
+
+ public Builder dbName(String dbName) {
+ this.dbName = dbName;
+ this.__explicitlySet__.add("dbName");
return this;
}
@@ -64,31 +90,12 @@ public Builder dataStorageSizeInTBs(Integer dataStorageSizeInTBs) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("dbName")
- private String dbName;
-
- public Builder dbName(String dbName) {
- this.dbName = dbName;
- this.__explicitlySet__.add("dbName");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
- private String dbVersion;
-
- public Builder dbVersion(String dbVersion) {
- this.dbVersion = dbVersion;
- this.__explicitlySet__.add("dbVersion");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- private java.util.Map> definedTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
+ private java.util.Date timeCreated;
- public Builder definedTags(
- java.util.Map> definedTags) {
- this.definedTags = definedTags;
- this.__explicitlySet__.add("definedTags");
+ public Builder timeCreated(java.util.Date timeCreated) {
+ this.timeCreated = timeCreated;
+ this.__explicitlySet__.add("timeCreated");
return this;
}
@@ -101,21 +108,22 @@ public Builder displayName(String displayName) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- private java.util.Map freeformTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
+ private String serviceConsoleUrl;
- public Builder freeformTags(java.util.Map freeformTags) {
- this.freeformTags = freeformTags;
- this.__explicitlySet__.add("freeformTags");
+ public Builder serviceConsoleUrl(String serviceConsoleUrl) {
+ this.serviceConsoleUrl = serviceConsoleUrl;
+ this.__explicitlySet__.add("serviceConsoleUrl");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private String id;
+ @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
+ private AutonomousDataWarehouseConnectionStrings connectionStrings;
- public Builder id(String id) {
- this.id = id;
- this.__explicitlySet__.add("id");
+ public Builder connectionStrings(
+ AutonomousDataWarehouseConnectionStrings connectionStrings) {
+ this.connectionStrings = connectionStrings;
+ this.__explicitlySet__.add("connectionStrings");
return this;
}
@@ -128,39 +136,31 @@ public Builder licenseModel(LicenseModel licenseModel) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- private String lifecycleDetails;
-
- public Builder lifecycleDetails(String lifecycleDetails) {
- this.lifecycleDetails = lifecycleDetails;
- this.__explicitlySet__.add("lifecycleDetails");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- private LifecycleState lifecycleState;
+ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
+ private java.util.Map freeformTags;
- public Builder lifecycleState(LifecycleState lifecycleState) {
- this.lifecycleState = lifecycleState;
- this.__explicitlySet__.add("lifecycleState");
+ public Builder freeformTags(java.util.Map freeformTags) {
+ this.freeformTags = freeformTags;
+ this.__explicitlySet__.add("freeformTags");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
- private String serviceConsoleUrl;
+ @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
+ private java.util.Map> definedTags;
- public Builder serviceConsoleUrl(String serviceConsoleUrl) {
- this.serviceConsoleUrl = serviceConsoleUrl;
- this.__explicitlySet__.add("serviceConsoleUrl");
+ public Builder definedTags(
+ java.util.Map> definedTags) {
+ this.definedTags = definedTags;
+ this.__explicitlySet__.add("definedTags");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
- private java.util.Date timeCreated;
+ @com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
+ private String dbVersion;
- public Builder timeCreated(java.util.Date timeCreated) {
- this.timeCreated = timeCreated;
- this.__explicitlySet__.add("timeCreated");
+ public Builder dbVersion(String dbVersion) {
+ this.dbVersion = dbVersion;
+ this.__explicitlySet__.add("dbVersion");
return this;
}
@@ -170,21 +170,21 @@ public Builder timeCreated(java.util.Date timeCreated) {
public AutonomousDataWarehouseSummary build() {
AutonomousDataWarehouseSummary __instance__ =
new AutonomousDataWarehouseSummary(
+ id,
compartmentId,
- connectionStrings,
+ lifecycleState,
+ lifecycleDetails,
+ dbName,
cpuCoreCount,
dataStorageSizeInTBs,
- dbName,
- dbVersion,
- definedTags,
+ timeCreated,
displayName,
- freeformTags,
- id,
- licenseModel,
- lifecycleDetails,
- lifecycleState,
serviceConsoleUrl,
- timeCreated);
+ connectionStrings,
+ licenseModel,
+ freeformTags,
+ definedTags,
+ dbVersion);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -192,21 +192,21 @@ public AutonomousDataWarehouseSummary build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(AutonomousDataWarehouseSummary o) {
Builder copiedBuilder =
- compartmentId(o.getCompartmentId())
- .connectionStrings(o.getConnectionStrings())
+ id(o.getId())
+ .compartmentId(o.getCompartmentId())
+ .lifecycleState(o.getLifecycleState())
+ .lifecycleDetails(o.getLifecycleDetails())
+ .dbName(o.getDbName())
.cpuCoreCount(o.getCpuCoreCount())
.dataStorageSizeInTBs(o.getDataStorageSizeInTBs())
- .dbName(o.getDbName())
- .dbVersion(o.getDbVersion())
- .definedTags(o.getDefinedTags())
+ .timeCreated(o.getTimeCreated())
.displayName(o.getDisplayName())
- .freeformTags(o.getFreeformTags())
- .id(o.getId())
- .licenseModel(o.getLicenseModel())
- .lifecycleDetails(o.getLifecycleDetails())
- .lifecycleState(o.getLifecycleState())
.serviceConsoleUrl(o.getServiceConsoleUrl())
- .timeCreated(o.getTimeCreated());
+ .connectionStrings(o.getConnectionStrings())
+ .licenseModel(o.getLicenseModel())
+ .freeformTags(o.getFreeformTags())
+ .definedTags(o.getDefinedTags())
+ .dbVersion(o.getDbVersion());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -220,29 +220,84 @@ public static Builder builder() {
return new Builder();
}
+ /**
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ String id;
+
/**
* The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
**/
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
String compartmentId;
-
/**
- * The connection string used to connect to the Data Warehouse. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Data Warehouse for the password value.
+ * The current state of the database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
- AutonomousDataWarehouseConnectionStrings connectionStrings;
+ @lombok.extern.slf4j.Slf4j
+ public enum LifecycleState {
+ Provisioning("PROVISIONING"),
+ Available("AVAILABLE"),
+ Stopping("STOPPING"),
+ Stopped("STOPPED"),
+ Starting("STARTING"),
+ Terminating("TERMINATING"),
+ Terminated("TERMINATED"),
+ Unavailable("UNAVAILABLE"),
+ RestoreInProgress("RESTORE_IN_PROGRESS"),
+ BackupInProgress("BACKUP_IN_PROGRESS"),
+ ScaleInProgress("SCALE_IN_PROGRESS"),
+ AvailableNeedsAttention("AVAILABLE_NEEDS_ATTENTION"),
+
+ /**
+ * This value is used if a service returns a value for this enum that is not recognized by this
+ * version of the SDK.
+ */
+ UnknownEnumValue(null);
+ private final String value;
+ private static java.util.Map map;
+
+ static {
+ map = new java.util.HashMap<>();
+ for (LifecycleState v : LifecycleState.values()) {
+ if (v != UnknownEnumValue) {
+ map.put(v.getValue(), v);
+ }
+ }
+ }
+
+ LifecycleState(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static LifecycleState create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ LOG.warn(
+ "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
+ key);
+ return UnknownEnumValue;
+ }
+ };
/**
- * The number of CPU cores to be made available to the database.
+ * The current state of the database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount")
- Integer cpuCoreCount;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ LifecycleState lifecycleState;
/**
- * The quantity of data in the database, in terabytes.
+ * Information about the current lifecycle state.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInTBs")
- Integer dataStorageSizeInTBs;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ String lifecycleDetails;
/**
* The database name.
@@ -251,20 +306,22 @@ public static Builder builder() {
String dbName;
/**
- * A valid Oracle Database version for Autonomous Data Warehouse.
+ * The number of CPU cores to be made available to the database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
- String dbVersion;
+ @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount")
+ Integer cpuCoreCount;
/**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace.
- * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
- *
- * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
- *
+ * The quantity of data in the database, in terabytes.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- java.util.Map> definedTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInTBs")
+ Integer dataStorageSizeInTBs;
+
+ /**
+ * The date and time the database was created.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
+ java.util.Date timeCreated;
/**
* The user-friendly name for the Autonomous Data Warehouse. The name does not have to be unique.
@@ -273,20 +330,16 @@ public static Builder builder() {
String displayName;
/**
- * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
- * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
- *
- * Example: `{\"Department\": \"Finance\"}`
- *
+ * The URL of the Service Console for the Data Warehouse.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- java.util.Map freeformTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
+ String serviceConsoleUrl;
/**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse.
+ * The connection string used to connect to the Data Warehouse. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Data Warehouse for the password value.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- String id;
+ @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
+ AutonomousDataWarehouseConnectionStrings connectionStrings;
/**
* The Oracle license model that applies to the Oracle Autonomous Data Warehouse. The default is BRING_YOUR_OWN_LICENSE.
*
@@ -342,83 +395,30 @@ public static LicenseModel create(String key) {
LicenseModel licenseModel;
/**
- * Information about the current lifecycle state.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- String lifecycleDetails;
- /**
- * The current state of the database.
- **/
- @lombok.extern.slf4j.Slf4j
- public enum LifecycleState {
- Provisioning("PROVISIONING"),
- Available("AVAILABLE"),
- Stopping("STOPPING"),
- Stopped("STOPPED"),
- Starting("STARTING"),
- Terminating("TERMINATING"),
- Terminated("TERMINATED"),
- Unavailable("UNAVAILABLE"),
- RestoreInProgress("RESTORE_IN_PROGRESS"),
- BackupInProgress("BACKUP_IN_PROGRESS"),
- ScaleInProgress("SCALE_IN_PROGRESS"),
- AvailableNeedsAttention("AVAILABLE_NEEDS_ATTENTION"),
-
- /**
- * This value is used if a service returns a value for this enum that is not recognized by this
- * version of the SDK.
- */
- UnknownEnumValue(null);
-
- private final String value;
- private static java.util.Map map;
-
- static {
- map = new java.util.HashMap<>();
- for (LifecycleState v : LifecycleState.values()) {
- if (v != UnknownEnumValue) {
- map.put(v.getValue(), v);
- }
- }
- }
-
- LifecycleState(String value) {
- this.value = value;
- }
-
- @com.fasterxml.jackson.annotation.JsonValue
- public String getValue() {
- return value;
- }
-
- @com.fasterxml.jackson.annotation.JsonCreator
- public static LifecycleState create(String key) {
- if (map.containsKey(key)) {
- return map.get(key);
- }
- LOG.warn(
- "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
- key);
- return UnknownEnumValue;
- }
- };
- /**
- * The current state of the database.
+ * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
+ * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
+ *
+ * Example: `{\"Department\": \"Finance\"}`
+ *
**/
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- LifecycleState lifecycleState;
+ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
+ java.util.Map freeformTags;
/**
- * The URL of the Service Console for the Data Warehouse.
+ * Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
+ *
+ * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+ *
**/
- @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
- String serviceConsoleUrl;
+ @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
+ java.util.Map> definedTags;
/**
- * The date and time the database was created.
+ * A valid Oracle Database version for Autonomous Data Warehouse.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
- java.util.Date timeCreated;
+ @com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
+ String dbVersion;
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java
index 16991486403..06cab687a46 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java
@@ -5,8 +5,6 @@
/**
* An Oracle Autonomous Database.
- *
- **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
*
*
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields
@@ -27,6 +25,15 @@ public class AutonomousDatabase {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ private String id;
+
+ public Builder id(String id) {
+ this.id = id;
+ this.__explicitlySet__.add("id");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
private String compartmentId;
@@ -36,12 +43,30 @@ public Builder compartmentId(String compartmentId) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
- private AutonomousDatabaseConnectionStrings connectionStrings;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ private LifecycleState lifecycleState;
- public Builder connectionStrings(AutonomousDatabaseConnectionStrings connectionStrings) {
- this.connectionStrings = connectionStrings;
- this.__explicitlySet__.add("connectionStrings");
+ public Builder lifecycleState(LifecycleState lifecycleState) {
+ this.lifecycleState = lifecycleState;
+ this.__explicitlySet__.add("lifecycleState");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ private String lifecycleDetails;
+
+ public Builder lifecycleDetails(String lifecycleDetails) {
+ this.lifecycleDetails = lifecycleDetails;
+ this.__explicitlySet__.add("lifecycleDetails");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("dbName")
+ private String dbName;
+
+ public Builder dbName(String dbName) {
+ this.dbName = dbName;
+ this.__explicitlySet__.add("dbName");
return this;
}
@@ -63,31 +88,12 @@ public Builder dataStorageSizeInTBs(Integer dataStorageSizeInTBs) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("dbName")
- private String dbName;
-
- public Builder dbName(String dbName) {
- this.dbName = dbName;
- this.__explicitlySet__.add("dbName");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
- private String dbVersion;
-
- public Builder dbVersion(String dbVersion) {
- this.dbVersion = dbVersion;
- this.__explicitlySet__.add("dbVersion");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- private java.util.Map> definedTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
+ private java.util.Date timeCreated;
- public Builder definedTags(
- java.util.Map> definedTags) {
- this.definedTags = definedTags;
- this.__explicitlySet__.add("definedTags");
+ public Builder timeCreated(java.util.Date timeCreated) {
+ this.timeCreated = timeCreated;
+ this.__explicitlySet__.add("timeCreated");
return this;
}
@@ -100,21 +106,21 @@ public Builder displayName(String displayName) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- private java.util.Map freeformTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
+ private String serviceConsoleUrl;
- public Builder freeformTags(java.util.Map freeformTags) {
- this.freeformTags = freeformTags;
- this.__explicitlySet__.add("freeformTags");
+ public Builder serviceConsoleUrl(String serviceConsoleUrl) {
+ this.serviceConsoleUrl = serviceConsoleUrl;
+ this.__explicitlySet__.add("serviceConsoleUrl");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private String id;
+ @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
+ private AutonomousDatabaseConnectionStrings connectionStrings;
- public Builder id(String id) {
- this.id = id;
- this.__explicitlySet__.add("id");
+ public Builder connectionStrings(AutonomousDatabaseConnectionStrings connectionStrings) {
+ this.connectionStrings = connectionStrings;
+ this.__explicitlySet__.add("connectionStrings");
return this;
}
@@ -127,39 +133,31 @@ public Builder licenseModel(LicenseModel licenseModel) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- private String lifecycleDetails;
-
- public Builder lifecycleDetails(String lifecycleDetails) {
- this.lifecycleDetails = lifecycleDetails;
- this.__explicitlySet__.add("lifecycleDetails");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- private LifecycleState lifecycleState;
+ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
+ private java.util.Map freeformTags;
- public Builder lifecycleState(LifecycleState lifecycleState) {
- this.lifecycleState = lifecycleState;
- this.__explicitlySet__.add("lifecycleState");
+ public Builder freeformTags(java.util.Map freeformTags) {
+ this.freeformTags = freeformTags;
+ this.__explicitlySet__.add("freeformTags");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
- private String serviceConsoleUrl;
+ @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
+ private java.util.Map> definedTags;
- public Builder serviceConsoleUrl(String serviceConsoleUrl) {
- this.serviceConsoleUrl = serviceConsoleUrl;
- this.__explicitlySet__.add("serviceConsoleUrl");
+ public Builder definedTags(
+ java.util.Map> definedTags) {
+ this.definedTags = definedTags;
+ this.__explicitlySet__.add("definedTags");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
- private java.util.Date timeCreated;
+ @com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
+ private String dbVersion;
- public Builder timeCreated(java.util.Date timeCreated) {
- this.timeCreated = timeCreated;
- this.__explicitlySet__.add("timeCreated");
+ public Builder dbVersion(String dbVersion) {
+ this.dbVersion = dbVersion;
+ this.__explicitlySet__.add("dbVersion");
return this;
}
@@ -169,21 +167,21 @@ public Builder timeCreated(java.util.Date timeCreated) {
public AutonomousDatabase build() {
AutonomousDatabase __instance__ =
new AutonomousDatabase(
+ id,
compartmentId,
- connectionStrings,
+ lifecycleState,
+ lifecycleDetails,
+ dbName,
cpuCoreCount,
dataStorageSizeInTBs,
- dbName,
- dbVersion,
- definedTags,
+ timeCreated,
displayName,
- freeformTags,
- id,
- licenseModel,
- lifecycleDetails,
- lifecycleState,
serviceConsoleUrl,
- timeCreated);
+ connectionStrings,
+ licenseModel,
+ freeformTags,
+ definedTags,
+ dbVersion);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -191,21 +189,21 @@ public AutonomousDatabase build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(AutonomousDatabase o) {
Builder copiedBuilder =
- compartmentId(o.getCompartmentId())
- .connectionStrings(o.getConnectionStrings())
+ id(o.getId())
+ .compartmentId(o.getCompartmentId())
+ .lifecycleState(o.getLifecycleState())
+ .lifecycleDetails(o.getLifecycleDetails())
+ .dbName(o.getDbName())
.cpuCoreCount(o.getCpuCoreCount())
.dataStorageSizeInTBs(o.getDataStorageSizeInTBs())
- .dbName(o.getDbName())
- .dbVersion(o.getDbVersion())
- .definedTags(o.getDefinedTags())
+ .timeCreated(o.getTimeCreated())
.displayName(o.getDisplayName())
- .freeformTags(o.getFreeformTags())
- .id(o.getId())
- .licenseModel(o.getLicenseModel())
- .lifecycleDetails(o.getLifecycleDetails())
- .lifecycleState(o.getLifecycleState())
.serviceConsoleUrl(o.getServiceConsoleUrl())
- .timeCreated(o.getTimeCreated());
+ .connectionStrings(o.getConnectionStrings())
+ .licenseModel(o.getLicenseModel())
+ .freeformTags(o.getFreeformTags())
+ .definedTags(o.getDefinedTags())
+ .dbVersion(o.getDbVersion());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -219,29 +217,85 @@ public static Builder builder() {
return new Builder();
}
+ /**
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ String id;
+
/**
* The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
**/
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
String compartmentId;
-
/**
- * The connection string used to connect to the Autonomous Database. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Database for the password value.
+ * The current state of the database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
- AutonomousDatabaseConnectionStrings connectionStrings;
+ @lombok.extern.slf4j.Slf4j
+ public enum LifecycleState {
+ Provisioning("PROVISIONING"),
+ Available("AVAILABLE"),
+ Stopping("STOPPING"),
+ Stopped("STOPPED"),
+ Starting("STARTING"),
+ Terminating("TERMINATING"),
+ Terminated("TERMINATED"),
+ Unavailable("UNAVAILABLE"),
+ RestoreInProgress("RESTORE_IN_PROGRESS"),
+ RestoreFailed("RESTORE_FAILED"),
+ BackupInProgress("BACKUP_IN_PROGRESS"),
+ ScaleInProgress("SCALE_IN_PROGRESS"),
+ AvailableNeedsAttention("AVAILABLE_NEEDS_ATTENTION"),
+
+ /**
+ * This value is used if a service returns a value for this enum that is not recognized by this
+ * version of the SDK.
+ */
+ UnknownEnumValue(null);
+
+ private final String value;
+ private static java.util.Map map;
+ static {
+ map = new java.util.HashMap<>();
+ for (LifecycleState v : LifecycleState.values()) {
+ if (v != UnknownEnumValue) {
+ map.put(v.getValue(), v);
+ }
+ }
+ }
+
+ LifecycleState(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static LifecycleState create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ LOG.warn(
+ "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
+ key);
+ return UnknownEnumValue;
+ }
+ };
/**
- * The number of CPU cores to be made available to the database.
+ * The current state of the database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount")
- Integer cpuCoreCount;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ LifecycleState lifecycleState;
/**
- * The quantity of data in the database, in terabytes.
+ * Information about the current lifecycle state.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInTBs")
- Integer dataStorageSizeInTBs;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ String lifecycleDetails;
/**
* The database name.
@@ -250,20 +304,22 @@ public static Builder builder() {
String dbName;
/**
- * A valid Oracle Database version for Autonomous Database.
+ * The number of CPU cores to be made available to the database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
- String dbVersion;
+ @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount")
+ Integer cpuCoreCount;
/**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace.
- * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
- *
- * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
- *
+ * The quantity of data in the database, in terabytes.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- java.util.Map> definedTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInTBs")
+ Integer dataStorageSizeInTBs;
+
+ /**
+ * The date and time the database was created.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
+ java.util.Date timeCreated;
/**
* The user-friendly name for the Autonomous Database. The name does not have to be unique.
@@ -272,20 +328,16 @@ public static Builder builder() {
String displayName;
/**
- * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
- * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
- *
- * Example: `{\"Department\": \"Finance\"}`
- *
+ * The URL of the Service Console for the Autonomous Database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- java.util.Map freeformTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
+ String serviceConsoleUrl;
/**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database.
+ * The connection string used to connect to the Autonomous Database. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Database for the password value.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- String id;
+ @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
+ AutonomousDatabaseConnectionStrings connectionStrings;
/**
* The Oracle license model that applies to the Oracle Autonomous Database. The default is BRING_YOUR_OWN_LICENSE.
*
@@ -341,84 +393,30 @@ public static LicenseModel create(String key) {
LicenseModel licenseModel;
/**
- * Information about the current lifecycle state.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- String lifecycleDetails;
- /**
- * The current state of the database.
- **/
- @lombok.extern.slf4j.Slf4j
- public enum LifecycleState {
- Provisioning("PROVISIONING"),
- Available("AVAILABLE"),
- Stopping("STOPPING"),
- Stopped("STOPPED"),
- Starting("STARTING"),
- Terminating("TERMINATING"),
- Terminated("TERMINATED"),
- Unavailable("UNAVAILABLE"),
- RestoreInProgress("RESTORE_IN_PROGRESS"),
- RestoreFailed("RESTORE_FAILED"),
- BackupInProgress("BACKUP_IN_PROGRESS"),
- ScaleInProgress("SCALE_IN_PROGRESS"),
- AvailableNeedsAttention("AVAILABLE_NEEDS_ATTENTION"),
-
- /**
- * This value is used if a service returns a value for this enum that is not recognized by this
- * version of the SDK.
- */
- UnknownEnumValue(null);
-
- private final String value;
- private static java.util.Map map;
-
- static {
- map = new java.util.HashMap<>();
- for (LifecycleState v : LifecycleState.values()) {
- if (v != UnknownEnumValue) {
- map.put(v.getValue(), v);
- }
- }
- }
-
- LifecycleState(String value) {
- this.value = value;
- }
-
- @com.fasterxml.jackson.annotation.JsonValue
- public String getValue() {
- return value;
- }
-
- @com.fasterxml.jackson.annotation.JsonCreator
- public static LifecycleState create(String key) {
- if (map.containsKey(key)) {
- return map.get(key);
- }
- LOG.warn(
- "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
- key);
- return UnknownEnumValue;
- }
- };
- /**
- * The current state of the database.
+ * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
+ * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
+ *
+ * Example: `{\"Department\": \"Finance\"}`
+ *
**/
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- LifecycleState lifecycleState;
+ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
+ java.util.Map freeformTags;
/**
- * The URL of the Service Console for the Autonomous Database.
+ * Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
+ *
+ * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+ *
**/
- @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
- String serviceConsoleUrl;
+ @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
+ java.util.Map> definedTags;
/**
- * The date and time the database was created.
+ * A valid Oracle Database version for Autonomous Database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
- java.util.Date timeCreated;
+ @com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
+ String dbVersion;
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseBackup.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseBackup.java
index bb6921c9a31..20e03459e82 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseBackup.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseBackup.java
@@ -5,9 +5,6 @@
/**
* An Autonomous Database backup.
- * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
- *
- **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
*
*
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields
@@ -28,12 +25,12 @@ public class AutonomousDatabaseBackup {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
- @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseId")
- private String autonomousDatabaseId;
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ private String id;
- public Builder autonomousDatabaseId(String autonomousDatabaseId) {
- this.autonomousDatabaseId = autonomousDatabaseId;
- this.__explicitlySet__.add("autonomousDatabaseId");
+ public Builder id(String id) {
+ this.id = id;
+ this.__explicitlySet__.add("id");
return this;
}
@@ -46,6 +43,15 @@ public Builder compartmentId(String compartmentId) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseId")
+ private String autonomousDatabaseId;
+
+ public Builder autonomousDatabaseId(String autonomousDatabaseId) {
+ this.autonomousDatabaseId = autonomousDatabaseId;
+ this.__explicitlySet__.add("autonomousDatabaseId");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("displayName")
private String displayName;
@@ -55,12 +61,12 @@ public Builder displayName(String displayName) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private String id;
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ private Type type;
- public Builder id(String id) {
- this.id = id;
- this.__explicitlySet__.add("id");
+ public Builder type(Type type) {
+ this.type = type;
+ this.__explicitlySet__.add("type");
return this;
}
@@ -73,21 +79,12 @@ public Builder isAutomatic(Boolean isAutomatic) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- private String lifecycleDetails;
-
- public Builder lifecycleDetails(String lifecycleDetails) {
- this.lifecycleDetails = lifecycleDetails;
- this.__explicitlySet__.add("lifecycleDetails");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- private LifecycleState lifecycleState;
+ @com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
+ private java.util.Date timeStarted;
- public Builder lifecycleState(LifecycleState lifecycleState) {
- this.lifecycleState = lifecycleState;
- this.__explicitlySet__.add("lifecycleState");
+ public Builder timeStarted(java.util.Date timeStarted) {
+ this.timeStarted = timeStarted;
+ this.__explicitlySet__.add("timeStarted");
return this;
}
@@ -100,21 +97,21 @@ public Builder timeEnded(java.util.Date timeEnded) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
- private java.util.Date timeStarted;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ private String lifecycleDetails;
- public Builder timeStarted(java.util.Date timeStarted) {
- this.timeStarted = timeStarted;
- this.__explicitlySet__.add("timeStarted");
+ public Builder lifecycleDetails(String lifecycleDetails) {
+ this.lifecycleDetails = lifecycleDetails;
+ this.__explicitlySet__.add("lifecycleDetails");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("type")
- private Type type;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ private LifecycleState lifecycleState;
- public Builder type(Type type) {
- this.type = type;
- this.__explicitlySet__.add("type");
+ public Builder lifecycleState(LifecycleState lifecycleState) {
+ this.lifecycleState = lifecycleState;
+ this.__explicitlySet__.add("lifecycleState");
return this;
}
@@ -124,16 +121,16 @@ public Builder type(Type type) {
public AutonomousDatabaseBackup build() {
AutonomousDatabaseBackup __instance__ =
new AutonomousDatabaseBackup(
- autonomousDatabaseId,
+ id,
compartmentId,
+ autonomousDatabaseId,
displayName,
- id,
+ type,
isAutomatic,
- lifecycleDetails,
- lifecycleState,
- timeEnded,
timeStarted,
- type);
+ timeEnded,
+ lifecycleDetails,
+ lifecycleState);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -141,16 +138,16 @@ public AutonomousDatabaseBackup build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(AutonomousDatabaseBackup o) {
Builder copiedBuilder =
- autonomousDatabaseId(o.getAutonomousDatabaseId())
+ id(o.getId())
.compartmentId(o.getCompartmentId())
+ .autonomousDatabaseId(o.getAutonomousDatabaseId())
.displayName(o.getDisplayName())
- .id(o.getId())
+ .type(o.getType())
.isAutomatic(o.getIsAutomatic())
- .lifecycleDetails(o.getLifecycleDetails())
- .lifecycleState(o.getLifecycleState())
- .timeEnded(o.getTimeEnded())
.timeStarted(o.getTimeStarted())
- .type(o.getType());
+ .timeEnded(o.getTimeEnded())
+ .lifecycleDetails(o.getLifecycleDetails())
+ .lifecycleState(o.getLifecycleState());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -165,10 +162,10 @@ public static Builder builder() {
}
/**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database.
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseId")
- String autonomousDatabaseId;
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ String id;
/**
* The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
@@ -177,38 +174,23 @@ public static Builder builder() {
String compartmentId;
/**
- * The user-friendly name for the backup. The name does not have to be unique.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("displayName")
- String displayName;
-
- /**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database backup.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- String id;
-
- /**
- * Indicates whether the backup is user-initiated or automatic.
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("isAutomatic")
- Boolean isAutomatic;
+ @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseId")
+ String autonomousDatabaseId;
/**
- * Additional information about the current lifecycle state.
+ * The user-friendly name for the backup. The name does not have to be unique.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- String lifecycleDetails;
+ @com.fasterxml.jackson.annotation.JsonProperty("displayName")
+ String displayName;
/**
- * The current state of the backup.
+ * The type of backup.
**/
@lombok.extern.slf4j.Slf4j
- public enum LifecycleState {
- Creating("CREATING"),
- Active("ACTIVE"),
- Deleting("DELETING"),
- Deleted("DELETED"),
- Failed("FAILED"),
+ public enum Type {
+ Incremental("INCREMENTAL"),
+ Full("FULL"),
/**
* This value is used if a service returns a value for this enum that is not recognized by this
@@ -217,18 +199,18 @@ public enum LifecycleState {
UnknownEnumValue(null);
private final String value;
- private static java.util.Map map;
+ private static java.util.Map map;
static {
map = new java.util.HashMap<>();
- for (LifecycleState v : LifecycleState.values()) {
+ for (Type v : Type.values()) {
if (v != UnknownEnumValue) {
map.put(v.getValue(), v);
}
}
}
- LifecycleState(String value) {
+ Type(String value) {
this.value = value;
}
@@ -238,40 +220,54 @@ public String getValue() {
}
@com.fasterxml.jackson.annotation.JsonCreator
- public static LifecycleState create(String key) {
+ public static Type create(String key) {
if (map.containsKey(key)) {
return map.get(key);
}
LOG.warn(
- "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
- key);
+ "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key);
return UnknownEnumValue;
}
};
/**
- * The current state of the backup.
+ * The type of backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- LifecycleState lifecycleState;
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ Type type;
/**
- * The date and time the backup completed.
+ * Indicates whether the backup is user-initiated or automatic.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("timeEnded")
- java.util.Date timeEnded;
+ @com.fasterxml.jackson.annotation.JsonProperty("isAutomatic")
+ Boolean isAutomatic;
/**
* The date and time the backup started.
**/
@com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
java.util.Date timeStarted;
+
/**
- * The type of backup.
+ * The date and time the backup completed.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("timeEnded")
+ java.util.Date timeEnded;
+
+ /**
+ * Additional information about the current lifecycle state.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ String lifecycleDetails;
+ /**
+ * The current state of the backup.
**/
@lombok.extern.slf4j.Slf4j
- public enum Type {
- Incremental("INCREMENTAL"),
- Full("FULL"),
+ public enum LifecycleState {
+ Creating("CREATING"),
+ Active("ACTIVE"),
+ Deleting("DELETING"),
+ Deleted("DELETED"),
+ Failed("FAILED"),
/**
* This value is used if a service returns a value for this enum that is not recognized by this
@@ -280,18 +276,18 @@ public enum Type {
UnknownEnumValue(null);
private final String value;
- private static java.util.Map map;
+ private static java.util.Map map;
static {
map = new java.util.HashMap<>();
- for (Type v : Type.values()) {
+ for (LifecycleState v : LifecycleState.values()) {
if (v != UnknownEnumValue) {
map.put(v.getValue(), v);
}
}
}
- Type(String value) {
+ LifecycleState(String value) {
this.value = value;
}
@@ -301,20 +297,21 @@ public String getValue() {
}
@com.fasterxml.jackson.annotation.JsonCreator
- public static Type create(String key) {
+ public static LifecycleState create(String key) {
if (map.containsKey(key)) {
return map.get(key);
}
LOG.warn(
- "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key);
+ "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
+ key);
return UnknownEnumValue;
}
};
/**
- * The type of backup.
+ * The current state of the backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("type")
- Type type;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ LifecycleState lifecycleState;
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseBackupSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseBackupSummary.java
index 656ec502e87..af9fcb921a1 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseBackupSummary.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseBackupSummary.java
@@ -28,12 +28,12 @@ public class AutonomousDatabaseBackupSummary {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
- @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseId")
- private String autonomousDatabaseId;
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ private String id;
- public Builder autonomousDatabaseId(String autonomousDatabaseId) {
- this.autonomousDatabaseId = autonomousDatabaseId;
- this.__explicitlySet__.add("autonomousDatabaseId");
+ public Builder id(String id) {
+ this.id = id;
+ this.__explicitlySet__.add("id");
return this;
}
@@ -46,6 +46,15 @@ public Builder compartmentId(String compartmentId) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseId")
+ private String autonomousDatabaseId;
+
+ public Builder autonomousDatabaseId(String autonomousDatabaseId) {
+ this.autonomousDatabaseId = autonomousDatabaseId;
+ this.__explicitlySet__.add("autonomousDatabaseId");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("displayName")
private String displayName;
@@ -55,12 +64,12 @@ public Builder displayName(String displayName) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private String id;
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ private Type type;
- public Builder id(String id) {
- this.id = id;
- this.__explicitlySet__.add("id");
+ public Builder type(Type type) {
+ this.type = type;
+ this.__explicitlySet__.add("type");
return this;
}
@@ -73,21 +82,12 @@ public Builder isAutomatic(Boolean isAutomatic) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- private String lifecycleDetails;
-
- public Builder lifecycleDetails(String lifecycleDetails) {
- this.lifecycleDetails = lifecycleDetails;
- this.__explicitlySet__.add("lifecycleDetails");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- private LifecycleState lifecycleState;
+ @com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
+ private java.util.Date timeStarted;
- public Builder lifecycleState(LifecycleState lifecycleState) {
- this.lifecycleState = lifecycleState;
- this.__explicitlySet__.add("lifecycleState");
+ public Builder timeStarted(java.util.Date timeStarted) {
+ this.timeStarted = timeStarted;
+ this.__explicitlySet__.add("timeStarted");
return this;
}
@@ -100,21 +100,21 @@ public Builder timeEnded(java.util.Date timeEnded) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
- private java.util.Date timeStarted;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ private String lifecycleDetails;
- public Builder timeStarted(java.util.Date timeStarted) {
- this.timeStarted = timeStarted;
- this.__explicitlySet__.add("timeStarted");
+ public Builder lifecycleDetails(String lifecycleDetails) {
+ this.lifecycleDetails = lifecycleDetails;
+ this.__explicitlySet__.add("lifecycleDetails");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("type")
- private Type type;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ private LifecycleState lifecycleState;
- public Builder type(Type type) {
- this.type = type;
- this.__explicitlySet__.add("type");
+ public Builder lifecycleState(LifecycleState lifecycleState) {
+ this.lifecycleState = lifecycleState;
+ this.__explicitlySet__.add("lifecycleState");
return this;
}
@@ -124,16 +124,16 @@ public Builder type(Type type) {
public AutonomousDatabaseBackupSummary build() {
AutonomousDatabaseBackupSummary __instance__ =
new AutonomousDatabaseBackupSummary(
- autonomousDatabaseId,
+ id,
compartmentId,
+ autonomousDatabaseId,
displayName,
- id,
+ type,
isAutomatic,
- lifecycleDetails,
- lifecycleState,
- timeEnded,
timeStarted,
- type);
+ timeEnded,
+ lifecycleDetails,
+ lifecycleState);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -141,16 +141,16 @@ public AutonomousDatabaseBackupSummary build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(AutonomousDatabaseBackupSummary o) {
Builder copiedBuilder =
- autonomousDatabaseId(o.getAutonomousDatabaseId())
+ id(o.getId())
.compartmentId(o.getCompartmentId())
+ .autonomousDatabaseId(o.getAutonomousDatabaseId())
.displayName(o.getDisplayName())
- .id(o.getId())
+ .type(o.getType())
.isAutomatic(o.getIsAutomatic())
- .lifecycleDetails(o.getLifecycleDetails())
- .lifecycleState(o.getLifecycleState())
- .timeEnded(o.getTimeEnded())
.timeStarted(o.getTimeStarted())
- .type(o.getType());
+ .timeEnded(o.getTimeEnded())
+ .lifecycleDetails(o.getLifecycleDetails())
+ .lifecycleState(o.getLifecycleState());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -165,10 +165,10 @@ public static Builder builder() {
}
/**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database.
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseId")
- String autonomousDatabaseId;
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ String id;
/**
* The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
@@ -177,38 +177,23 @@ public static Builder builder() {
String compartmentId;
/**
- * The user-friendly name for the backup. The name does not have to be unique.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("displayName")
- String displayName;
-
- /**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database backup.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- String id;
-
- /**
- * Indicates whether the backup is user-initiated or automatic.
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("isAutomatic")
- Boolean isAutomatic;
+ @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseId")
+ String autonomousDatabaseId;
/**
- * Additional information about the current lifecycle state.
+ * The user-friendly name for the backup. The name does not have to be unique.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- String lifecycleDetails;
+ @com.fasterxml.jackson.annotation.JsonProperty("displayName")
+ String displayName;
/**
- * The current state of the backup.
+ * The type of backup.
**/
@lombok.extern.slf4j.Slf4j
- public enum LifecycleState {
- Creating("CREATING"),
- Active("ACTIVE"),
- Deleting("DELETING"),
- Deleted("DELETED"),
- Failed("FAILED"),
+ public enum Type {
+ Incremental("INCREMENTAL"),
+ Full("FULL"),
/**
* This value is used if a service returns a value for this enum that is not recognized by this
@@ -217,18 +202,18 @@ public enum LifecycleState {
UnknownEnumValue(null);
private final String value;
- private static java.util.Map map;
+ private static java.util.Map map;
static {
map = new java.util.HashMap<>();
- for (LifecycleState v : LifecycleState.values()) {
+ for (Type v : Type.values()) {
if (v != UnknownEnumValue) {
map.put(v.getValue(), v);
}
}
}
- LifecycleState(String value) {
+ Type(String value) {
this.value = value;
}
@@ -238,40 +223,54 @@ public String getValue() {
}
@com.fasterxml.jackson.annotation.JsonCreator
- public static LifecycleState create(String key) {
+ public static Type create(String key) {
if (map.containsKey(key)) {
return map.get(key);
}
LOG.warn(
- "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
- key);
+ "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key);
return UnknownEnumValue;
}
};
/**
- * The current state of the backup.
+ * The type of backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- LifecycleState lifecycleState;
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ Type type;
/**
- * The date and time the backup completed.
+ * Indicates whether the backup is user-initiated or automatic.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("timeEnded")
- java.util.Date timeEnded;
+ @com.fasterxml.jackson.annotation.JsonProperty("isAutomatic")
+ Boolean isAutomatic;
/**
* The date and time the backup started.
**/
@com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
java.util.Date timeStarted;
+
/**
- * The type of backup.
+ * The date and time the backup completed.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("timeEnded")
+ java.util.Date timeEnded;
+
+ /**
+ * Additional information about the current lifecycle state.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ String lifecycleDetails;
+ /**
+ * The current state of the backup.
**/
@lombok.extern.slf4j.Slf4j
- public enum Type {
- Incremental("INCREMENTAL"),
- Full("FULL"),
+ public enum LifecycleState {
+ Creating("CREATING"),
+ Active("ACTIVE"),
+ Deleting("DELETING"),
+ Deleted("DELETED"),
+ Failed("FAILED"),
/**
* This value is used if a service returns a value for this enum that is not recognized by this
@@ -280,18 +279,18 @@ public enum Type {
UnknownEnumValue(null);
private final String value;
- private static java.util.Map map;
+ private static java.util.Map map;
static {
map = new java.util.HashMap<>();
- for (Type v : Type.values()) {
+ for (LifecycleState v : LifecycleState.values()) {
if (v != UnknownEnumValue) {
map.put(v.getValue(), v);
}
}
}
- Type(String value) {
+ LifecycleState(String value) {
this.value = value;
}
@@ -301,20 +300,21 @@ public String getValue() {
}
@com.fasterxml.jackson.annotation.JsonCreator
- public static Type create(String key) {
+ public static LifecycleState create(String key) {
if (map.containsKey(key)) {
return map.get(key);
}
LOG.warn(
- "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key);
+ "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
+ key);
return UnknownEnumValue;
}
};
/**
- * The type of backup.
+ * The current state of the backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("type")
- Type type;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ LifecycleState lifecycleState;
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseConnectionStrings.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseConnectionStrings.java
index 54187b826bf..f61e73186e5 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseConnectionStrings.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseConnectionStrings.java
@@ -25,15 +25,6 @@ public class AutonomousDatabaseConnectionStrings {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
- @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings")
- private java.util.Map allConnectionStrings;
-
- public Builder allConnectionStrings(java.util.Map allConnectionStrings) {
- this.allConnectionStrings = allConnectionStrings;
- this.__explicitlySet__.add("allConnectionStrings");
- return this;
- }
-
@com.fasterxml.jackson.annotation.JsonProperty("high")
private String high;
@@ -43,6 +34,15 @@ public Builder high(String high) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("medium")
+ private String medium;
+
+ public Builder medium(String medium) {
+ this.medium = medium;
+ this.__explicitlySet__.add("medium");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("low")
private String low;
@@ -52,12 +52,12 @@ public Builder low(String low) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("medium")
- private String medium;
+ @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings")
+ private java.util.Map allConnectionStrings;
- public Builder medium(String medium) {
- this.medium = medium;
- this.__explicitlySet__.add("medium");
+ public Builder allConnectionStrings(java.util.Map allConnectionStrings) {
+ this.allConnectionStrings = allConnectionStrings;
+ this.__explicitlySet__.add("allConnectionStrings");
return this;
}
@@ -67,7 +67,7 @@ public Builder medium(String medium) {
public AutonomousDatabaseConnectionStrings build() {
AutonomousDatabaseConnectionStrings __instance__ =
new AutonomousDatabaseConnectionStrings(
- allConnectionStrings, high, low, medium);
+ high, medium, low, allConnectionStrings);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -75,10 +75,10 @@ public AutonomousDatabaseConnectionStrings build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(AutonomousDatabaseConnectionStrings o) {
Builder copiedBuilder =
- allConnectionStrings(o.getAllConnectionStrings())
- .high(o.getHigh())
+ high(o.getHigh())
+ .medium(o.getMedium())
.low(o.getLow())
- .medium(o.getMedium());
+ .allConnectionStrings(o.getAllConnectionStrings());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -92,18 +92,18 @@ public static Builder builder() {
return new Builder();
}
- /**
- * All connection strings to use to connect to the Autonomous Database.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings")
- java.util.Map allConnectionStrings;
-
/**
* The High database service provides the highest level of resources to each SQL statement resulting in the highest performance, but supports the fewest number of concurrent SQL statements.
**/
@com.fasterxml.jackson.annotation.JsonProperty("high")
String high;
+ /**
+ * The Medium database service provides a lower level of resources to each SQL statement potentially resulting a lower level of performance, but supports more concurrent SQL statements.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("medium")
+ String medium;
+
/**
* The Low database service provides the least level of resources to each SQL statement, but supports the most number of concurrent SQL statements.
**/
@@ -111,10 +111,10 @@ public static Builder builder() {
String low;
/**
- * The Medium database service provides a lower level of resources to each SQL statement potentially resulting a lower level of performance, but supports more concurrent SQL statements.
+ * All connection strings to use to connect to the Autonomous Database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("medium")
- String medium;
+ @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings")
+ java.util.Map allConnectionStrings;
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java
index a77c99ee7c7..89089eeba48 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java
@@ -27,6 +27,15 @@ public class AutonomousDatabaseSummary {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ private String id;
+
+ public Builder id(String id) {
+ this.id = id;
+ this.__explicitlySet__.add("id");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
private String compartmentId;
@@ -36,12 +45,30 @@ public Builder compartmentId(String compartmentId) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
- private AutonomousDatabaseConnectionStrings connectionStrings;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ private LifecycleState lifecycleState;
- public Builder connectionStrings(AutonomousDatabaseConnectionStrings connectionStrings) {
- this.connectionStrings = connectionStrings;
- this.__explicitlySet__.add("connectionStrings");
+ public Builder lifecycleState(LifecycleState lifecycleState) {
+ this.lifecycleState = lifecycleState;
+ this.__explicitlySet__.add("lifecycleState");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ private String lifecycleDetails;
+
+ public Builder lifecycleDetails(String lifecycleDetails) {
+ this.lifecycleDetails = lifecycleDetails;
+ this.__explicitlySet__.add("lifecycleDetails");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("dbName")
+ private String dbName;
+
+ public Builder dbName(String dbName) {
+ this.dbName = dbName;
+ this.__explicitlySet__.add("dbName");
return this;
}
@@ -63,31 +90,12 @@ public Builder dataStorageSizeInTBs(Integer dataStorageSizeInTBs) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("dbName")
- private String dbName;
-
- public Builder dbName(String dbName) {
- this.dbName = dbName;
- this.__explicitlySet__.add("dbName");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
- private String dbVersion;
-
- public Builder dbVersion(String dbVersion) {
- this.dbVersion = dbVersion;
- this.__explicitlySet__.add("dbVersion");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- private java.util.Map> definedTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
+ private java.util.Date timeCreated;
- public Builder definedTags(
- java.util.Map> definedTags) {
- this.definedTags = definedTags;
- this.__explicitlySet__.add("definedTags");
+ public Builder timeCreated(java.util.Date timeCreated) {
+ this.timeCreated = timeCreated;
+ this.__explicitlySet__.add("timeCreated");
return this;
}
@@ -100,21 +108,21 @@ public Builder displayName(String displayName) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- private java.util.Map freeformTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
+ private String serviceConsoleUrl;
- public Builder freeformTags(java.util.Map freeformTags) {
- this.freeformTags = freeformTags;
- this.__explicitlySet__.add("freeformTags");
+ public Builder serviceConsoleUrl(String serviceConsoleUrl) {
+ this.serviceConsoleUrl = serviceConsoleUrl;
+ this.__explicitlySet__.add("serviceConsoleUrl");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private String id;
+ @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
+ private AutonomousDatabaseConnectionStrings connectionStrings;
- public Builder id(String id) {
- this.id = id;
- this.__explicitlySet__.add("id");
+ public Builder connectionStrings(AutonomousDatabaseConnectionStrings connectionStrings) {
+ this.connectionStrings = connectionStrings;
+ this.__explicitlySet__.add("connectionStrings");
return this;
}
@@ -127,39 +135,31 @@ public Builder licenseModel(LicenseModel licenseModel) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- private String lifecycleDetails;
-
- public Builder lifecycleDetails(String lifecycleDetails) {
- this.lifecycleDetails = lifecycleDetails;
- this.__explicitlySet__.add("lifecycleDetails");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- private LifecycleState lifecycleState;
+ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
+ private java.util.Map freeformTags;
- public Builder lifecycleState(LifecycleState lifecycleState) {
- this.lifecycleState = lifecycleState;
- this.__explicitlySet__.add("lifecycleState");
+ public Builder freeformTags(java.util.Map freeformTags) {
+ this.freeformTags = freeformTags;
+ this.__explicitlySet__.add("freeformTags");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
- private String serviceConsoleUrl;
+ @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
+ private java.util.Map> definedTags;
- public Builder serviceConsoleUrl(String serviceConsoleUrl) {
- this.serviceConsoleUrl = serviceConsoleUrl;
- this.__explicitlySet__.add("serviceConsoleUrl");
+ public Builder definedTags(
+ java.util.Map> definedTags) {
+ this.definedTags = definedTags;
+ this.__explicitlySet__.add("definedTags");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
- private java.util.Date timeCreated;
+ @com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
+ private String dbVersion;
- public Builder timeCreated(java.util.Date timeCreated) {
- this.timeCreated = timeCreated;
- this.__explicitlySet__.add("timeCreated");
+ public Builder dbVersion(String dbVersion) {
+ this.dbVersion = dbVersion;
+ this.__explicitlySet__.add("dbVersion");
return this;
}
@@ -169,21 +169,21 @@ public Builder timeCreated(java.util.Date timeCreated) {
public AutonomousDatabaseSummary build() {
AutonomousDatabaseSummary __instance__ =
new AutonomousDatabaseSummary(
+ id,
compartmentId,
- connectionStrings,
+ lifecycleState,
+ lifecycleDetails,
+ dbName,
cpuCoreCount,
dataStorageSizeInTBs,
- dbName,
- dbVersion,
- definedTags,
+ timeCreated,
displayName,
- freeformTags,
- id,
- licenseModel,
- lifecycleDetails,
- lifecycleState,
serviceConsoleUrl,
- timeCreated);
+ connectionStrings,
+ licenseModel,
+ freeformTags,
+ definedTags,
+ dbVersion);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -191,21 +191,21 @@ public AutonomousDatabaseSummary build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(AutonomousDatabaseSummary o) {
Builder copiedBuilder =
- compartmentId(o.getCompartmentId())
- .connectionStrings(o.getConnectionStrings())
+ id(o.getId())
+ .compartmentId(o.getCompartmentId())
+ .lifecycleState(o.getLifecycleState())
+ .lifecycleDetails(o.getLifecycleDetails())
+ .dbName(o.getDbName())
.cpuCoreCount(o.getCpuCoreCount())
.dataStorageSizeInTBs(o.getDataStorageSizeInTBs())
- .dbName(o.getDbName())
- .dbVersion(o.getDbVersion())
- .definedTags(o.getDefinedTags())
+ .timeCreated(o.getTimeCreated())
.displayName(o.getDisplayName())
- .freeformTags(o.getFreeformTags())
- .id(o.getId())
- .licenseModel(o.getLicenseModel())
- .lifecycleDetails(o.getLifecycleDetails())
- .lifecycleState(o.getLifecycleState())
.serviceConsoleUrl(o.getServiceConsoleUrl())
- .timeCreated(o.getTimeCreated());
+ .connectionStrings(o.getConnectionStrings())
+ .licenseModel(o.getLicenseModel())
+ .freeformTags(o.getFreeformTags())
+ .definedTags(o.getDefinedTags())
+ .dbVersion(o.getDbVersion());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -219,29 +219,85 @@ public static Builder builder() {
return new Builder();
}
+ /**
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ String id;
+
/**
* The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
**/
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
String compartmentId;
-
/**
- * The connection string used to connect to the Autonomous Database. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Database for the password value.
+ * The current state of the database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
- AutonomousDatabaseConnectionStrings connectionStrings;
+ @lombok.extern.slf4j.Slf4j
+ public enum LifecycleState {
+ Provisioning("PROVISIONING"),
+ Available("AVAILABLE"),
+ Stopping("STOPPING"),
+ Stopped("STOPPED"),
+ Starting("STARTING"),
+ Terminating("TERMINATING"),
+ Terminated("TERMINATED"),
+ Unavailable("UNAVAILABLE"),
+ RestoreInProgress("RESTORE_IN_PROGRESS"),
+ RestoreFailed("RESTORE_FAILED"),
+ BackupInProgress("BACKUP_IN_PROGRESS"),
+ ScaleInProgress("SCALE_IN_PROGRESS"),
+ AvailableNeedsAttention("AVAILABLE_NEEDS_ATTENTION"),
+
+ /**
+ * This value is used if a service returns a value for this enum that is not recognized by this
+ * version of the SDK.
+ */
+ UnknownEnumValue(null);
+
+ private final String value;
+ private static java.util.Map map;
+ static {
+ map = new java.util.HashMap<>();
+ for (LifecycleState v : LifecycleState.values()) {
+ if (v != UnknownEnumValue) {
+ map.put(v.getValue(), v);
+ }
+ }
+ }
+
+ LifecycleState(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static LifecycleState create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ LOG.warn(
+ "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
+ key);
+ return UnknownEnumValue;
+ }
+ };
/**
- * The number of CPU cores to be made available to the database.
+ * The current state of the database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount")
- Integer cpuCoreCount;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ LifecycleState lifecycleState;
/**
- * The quantity of data in the database, in terabytes.
+ * Information about the current lifecycle state.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInTBs")
- Integer dataStorageSizeInTBs;
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ String lifecycleDetails;
/**
* The database name.
@@ -250,20 +306,22 @@ public static Builder builder() {
String dbName;
/**
- * A valid Oracle Database version for Autonomous Database.
+ * The number of CPU cores to be made available to the database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
- String dbVersion;
+ @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount")
+ Integer cpuCoreCount;
/**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace.
- * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
- *
- * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
- *
+ * The quantity of data in the database, in terabytes.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- java.util.Map> definedTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInTBs")
+ Integer dataStorageSizeInTBs;
+
+ /**
+ * The date and time the database was created.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
+ java.util.Date timeCreated;
/**
* The user-friendly name for the Autonomous Database. The name does not have to be unique.
@@ -272,20 +330,16 @@ public static Builder builder() {
String displayName;
/**
- * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
- * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
- *
- * Example: `{\"Department\": \"Finance\"}`
- *
+ * The URL of the Service Console for the Autonomous Database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- java.util.Map freeformTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
+ String serviceConsoleUrl;
/**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database.
+ * The connection string used to connect to the Autonomous Database. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Database for the password value.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- String id;
+ @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings")
+ AutonomousDatabaseConnectionStrings connectionStrings;
/**
* The Oracle license model that applies to the Oracle Autonomous Database. The default is BRING_YOUR_OWN_LICENSE.
*
@@ -341,84 +395,30 @@ public static LicenseModel create(String key) {
LicenseModel licenseModel;
/**
- * Information about the current lifecycle state.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- String lifecycleDetails;
- /**
- * The current state of the database.
- **/
- @lombok.extern.slf4j.Slf4j
- public enum LifecycleState {
- Provisioning("PROVISIONING"),
- Available("AVAILABLE"),
- Stopping("STOPPING"),
- Stopped("STOPPED"),
- Starting("STARTING"),
- Terminating("TERMINATING"),
- Terminated("TERMINATED"),
- Unavailable("UNAVAILABLE"),
- RestoreInProgress("RESTORE_IN_PROGRESS"),
- RestoreFailed("RESTORE_FAILED"),
- BackupInProgress("BACKUP_IN_PROGRESS"),
- ScaleInProgress("SCALE_IN_PROGRESS"),
- AvailableNeedsAttention("AVAILABLE_NEEDS_ATTENTION"),
-
- /**
- * This value is used if a service returns a value for this enum that is not recognized by this
- * version of the SDK.
- */
- UnknownEnumValue(null);
-
- private final String value;
- private static java.util.Map map;
-
- static {
- map = new java.util.HashMap<>();
- for (LifecycleState v : LifecycleState.values()) {
- if (v != UnknownEnumValue) {
- map.put(v.getValue(), v);
- }
- }
- }
-
- LifecycleState(String value) {
- this.value = value;
- }
-
- @com.fasterxml.jackson.annotation.JsonValue
- public String getValue() {
- return value;
- }
-
- @com.fasterxml.jackson.annotation.JsonCreator
- public static LifecycleState create(String key) {
- if (map.containsKey(key)) {
- return map.get(key);
- }
- LOG.warn(
- "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
- key);
- return UnknownEnumValue;
- }
- };
- /**
- * The current state of the database.
+ * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
+ * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
+ *
+ * Example: `{\"Department\": \"Finance\"}`
+ *
**/
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- LifecycleState lifecycleState;
+ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
+ java.util.Map freeformTags;
/**
- * The URL of the Service Console for the Autonomous Database.
+ * Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
+ *
+ * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+ *
**/
- @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl")
- String serviceConsoleUrl;
+ @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
+ java.util.Map> definedTags;
/**
- * The date and time the database was created.
+ * A valid Oracle Database version for Autonomous Database.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
- java.util.Date timeCreated;
+ @com.fasterxml.jackson.annotation.JsonProperty("dbVersion")
+ String dbVersion;
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/Backup.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/Backup.java
index 5225c15a3f9..d7a8a1201ae 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/Backup.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/Backup.java
@@ -4,10 +4,6 @@
package com.oracle.bmc.database.model;
/**
- * A database backup.
- * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
- *
- **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
*
*
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields
@@ -26,12 +22,12 @@ public class Backup {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
- @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain")
- private String availabilityDomain;
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ private String id;
- public Builder availabilityDomain(String availabilityDomain) {
- this.availabilityDomain = availabilityDomain;
- this.__explicitlySet__.add("availabilityDomain");
+ public Builder id(String id) {
+ this.id = id;
+ this.__explicitlySet__.add("id");
return this;
}
@@ -44,15 +40,6 @@ public Builder compartmentId(String compartmentId) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition")
- private DatabaseEdition databaseEdition;
-
- public Builder databaseEdition(DatabaseEdition databaseEdition) {
- this.databaseEdition = databaseEdition;
- this.__explicitlySet__.add("databaseEdition");
- return this;
- }
-
@com.fasterxml.jackson.annotation.JsonProperty("databaseId")
private String databaseId;
@@ -62,15 +49,6 @@ public Builder databaseId(String databaseId) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInGBs")
- private Double databaseSizeInGBs;
-
- public Builder databaseSizeInGBs(Double databaseSizeInGBs) {
- this.databaseSizeInGBs = databaseSizeInGBs;
- this.__explicitlySet__.add("databaseSizeInGBs");
- return this;
- }
-
@com.fasterxml.jackson.annotation.JsonProperty("displayName")
private String displayName;
@@ -80,12 +58,30 @@ public Builder displayName(String displayName) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private String id;
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ private Type type;
- public Builder id(String id) {
- this.id = id;
- this.__explicitlySet__.add("id");
+ public Builder type(Type type) {
+ this.type = type;
+ this.__explicitlySet__.add("type");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
+ private java.util.Date timeStarted;
+
+ public Builder timeStarted(java.util.Date timeStarted) {
+ this.timeStarted = timeStarted;
+ this.__explicitlySet__.add("timeStarted");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("timeEnded")
+ private java.util.Date timeEnded;
+
+ public Builder timeEnded(java.util.Date timeEnded) {
+ this.timeEnded = timeEnded;
+ this.__explicitlySet__.add("timeEnded");
return this;
}
@@ -98,6 +94,15 @@ public Builder lifecycleDetails(String lifecycleDetails) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain")
+ private String availabilityDomain;
+
+ public Builder availabilityDomain(String availabilityDomain) {
+ this.availabilityDomain = availabilityDomain;
+ this.__explicitlySet__.add("availabilityDomain");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
private LifecycleState lifecycleState;
@@ -107,30 +112,21 @@ public Builder lifecycleState(LifecycleState lifecycleState) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("timeEnded")
- private java.util.Date timeEnded;
-
- public Builder timeEnded(java.util.Date timeEnded) {
- this.timeEnded = timeEnded;
- this.__explicitlySet__.add("timeEnded");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
- private java.util.Date timeStarted;
+ @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition")
+ private DatabaseEdition databaseEdition;
- public Builder timeStarted(java.util.Date timeStarted) {
- this.timeStarted = timeStarted;
- this.__explicitlySet__.add("timeStarted");
+ public Builder databaseEdition(DatabaseEdition databaseEdition) {
+ this.databaseEdition = databaseEdition;
+ this.__explicitlySet__.add("databaseEdition");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("type")
- private Type type;
+ @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInGBs")
+ private Double databaseSizeInGBs;
- public Builder type(Type type) {
- this.type = type;
- this.__explicitlySet__.add("type");
+ public Builder databaseSizeInGBs(Double databaseSizeInGBs) {
+ this.databaseSizeInGBs = databaseSizeInGBs;
+ this.__explicitlySet__.add("databaseSizeInGBs");
return this;
}
@@ -140,18 +136,18 @@ public Builder type(Type type) {
public Backup build() {
Backup __instance__ =
new Backup(
- availabilityDomain,
+ id,
compartmentId,
- databaseEdition,
databaseId,
- databaseSizeInGBs,
displayName,
- id,
+ type,
+ timeStarted,
+ timeEnded,
lifecycleDetails,
+ availabilityDomain,
lifecycleState,
- timeEnded,
- timeStarted,
- type);
+ databaseEdition,
+ databaseSizeInGBs);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -159,18 +155,18 @@ public Backup build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(Backup o) {
Builder copiedBuilder =
- availabilityDomain(o.getAvailabilityDomain())
+ id(o.getId())
.compartmentId(o.getCompartmentId())
- .databaseEdition(o.getDatabaseEdition())
.databaseId(o.getDatabaseId())
- .databaseSizeInGBs(o.getDatabaseSizeInGBs())
.displayName(o.getDisplayName())
- .id(o.getId())
+ .type(o.getType())
+ .timeStarted(o.getTimeStarted())
+ .timeEnded(o.getTimeEnded())
.lifecycleDetails(o.getLifecycleDetails())
+ .availabilityDomain(o.getAvailabilityDomain())
.lifecycleState(o.getLifecycleState())
- .timeEnded(o.getTimeEnded())
- .timeStarted(o.getTimeStarted())
- .type(o.getType());
+ .databaseEdition(o.getDatabaseEdition())
+ .databaseSizeInGBs(o.getDatabaseSizeInGBs());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -185,26 +181,35 @@ public static Builder builder() {
}
/**
- * The name of the availability domain where the database backup is stored.
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain")
- String availabilityDomain;
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ String id;
/**
* The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
**/
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
String compartmentId;
+
/**
- * The Oracle Database edition of the DB system from which the database backup was taken.
- *
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("databaseId")
+ String databaseId;
+
+ /**
+ * The user-friendly name for the backup. The name does not have to be unique.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("displayName")
+ String displayName;
+ /**
+ * The type of backup.
**/
@lombok.extern.slf4j.Slf4j
- public enum DatabaseEdition {
- StandardEdition("STANDARD_EDITION"),
- EnterpriseEdition("ENTERPRISE_EDITION"),
- EnterpriseEditionHighPerformance("ENTERPRISE_EDITION_HIGH_PERFORMANCE"),
- EnterpriseEditionExtremePerformance("ENTERPRISE_EDITION_EXTREME_PERFORMANCE"),
+ public enum Type {
+ Incremental("INCREMENTAL"),
+ Full("FULL"),
/**
* This value is used if a service returns a value for this enum that is not recognized by this
@@ -213,18 +218,18 @@ public enum DatabaseEdition {
UnknownEnumValue(null);
private final String value;
- private static java.util.Map map;
+ private static java.util.Map map;
static {
map = new java.util.HashMap<>();
- for (DatabaseEdition v : DatabaseEdition.values()) {
+ for (Type v : Type.values()) {
if (v != UnknownEnumValue) {
map.put(v.getValue(), v);
}
}
}
- DatabaseEdition(String value) {
+ Type(String value) {
this.value = value;
}
@@ -234,53 +239,44 @@ public String getValue() {
}
@com.fasterxml.jackson.annotation.JsonCreator
- public static DatabaseEdition create(String key) {
+ public static Type create(String key) {
if (map.containsKey(key)) {
return map.get(key);
}
LOG.warn(
- "Received unknown value '{}' for enum 'DatabaseEdition', returning UnknownEnumValue",
- key);
+ "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key);
return UnknownEnumValue;
}
};
/**
- * The Oracle Database edition of the DB system from which the database backup was taken.
- *
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition")
- DatabaseEdition databaseEdition;
-
- /**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("databaseId")
- String databaseId;
-
- /**
- * The size of the database in gigabytes at the time the backup was taken.
- *
+ * The type of backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInGBs")
- Double databaseSizeInGBs;
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ Type type;
/**
- * The user-friendly name for the backup. The name does not have to be unique.
+ * The date and time the backup started.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("displayName")
- String displayName;
+ @com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
+ java.util.Date timeStarted;
/**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup.
+ * The date and time the backup was completed.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- String id;
+ @com.fasterxml.jackson.annotation.JsonProperty("timeEnded")
+ java.util.Date timeEnded;
/**
* Additional information about the current lifecycleState.
**/
@com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
String lifecycleDetails;
+
+ /**
+ * The name of the availability domain where the database backup is stored.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain")
+ String availabilityDomain;
/**
* The current state of the backup.
**/
@@ -336,25 +332,16 @@ public static LifecycleState create(String key) {
**/
@com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
LifecycleState lifecycleState;
-
- /**
- * The date and time the backup was completed.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("timeEnded")
- java.util.Date timeEnded;
-
- /**
- * The date and time the backup started.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
- java.util.Date timeStarted;
/**
- * The type of backup.
+ * The Oracle Database edition of the DB system from which the database backup was taken.
+ *
**/
@lombok.extern.slf4j.Slf4j
- public enum Type {
- Incremental("INCREMENTAL"),
- Full("FULL"),
+ public enum DatabaseEdition {
+ StandardEdition("STANDARD_EDITION"),
+ EnterpriseEdition("ENTERPRISE_EDITION"),
+ EnterpriseEditionHighPerformance("ENTERPRISE_EDITION_HIGH_PERFORMANCE"),
+ EnterpriseEditionExtremePerformance("ENTERPRISE_EDITION_EXTREME_PERFORMANCE"),
/**
* This value is used if a service returns a value for this enum that is not recognized by this
@@ -363,18 +350,18 @@ public enum Type {
UnknownEnumValue(null);
private final String value;
- private static java.util.Map map;
+ private static java.util.Map map;
static {
map = new java.util.HashMap<>();
- for (Type v : Type.values()) {
+ for (DatabaseEdition v : DatabaseEdition.values()) {
if (v != UnknownEnumValue) {
map.put(v.getValue(), v);
}
}
}
- Type(String value) {
+ DatabaseEdition(String value) {
this.value = value;
}
@@ -384,20 +371,29 @@ public String getValue() {
}
@com.fasterxml.jackson.annotation.JsonCreator
- public static Type create(String key) {
+ public static DatabaseEdition create(String key) {
if (map.containsKey(key)) {
return map.get(key);
}
LOG.warn(
- "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key);
+ "Received unknown value '{}' for enum 'DatabaseEdition', returning UnknownEnumValue",
+ key);
return UnknownEnumValue;
}
};
/**
- * The type of backup.
+ * The Oracle Database edition of the DB system from which the database backup was taken.
+ *
**/
- @com.fasterxml.jackson.annotation.JsonProperty("type")
- Type type;
+ @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition")
+ DatabaseEdition databaseEdition;
+
+ /**
+ * The size of the database in gigabytes at the time the backup was taken.
+ *
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInGBs")
+ Double databaseSizeInGBs;
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupSummary.java
index e72c2a4e805..40bd8fae301 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupSummary.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupSummary.java
@@ -26,12 +26,12 @@ public class BackupSummary {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
- @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain")
- private String availabilityDomain;
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ private String id;
- public Builder availabilityDomain(String availabilityDomain) {
- this.availabilityDomain = availabilityDomain;
- this.__explicitlySet__.add("availabilityDomain");
+ public Builder id(String id) {
+ this.id = id;
+ this.__explicitlySet__.add("id");
return this;
}
@@ -44,15 +44,6 @@ public Builder compartmentId(String compartmentId) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition")
- private DatabaseEdition databaseEdition;
-
- public Builder databaseEdition(DatabaseEdition databaseEdition) {
- this.databaseEdition = databaseEdition;
- this.__explicitlySet__.add("databaseEdition");
- return this;
- }
-
@com.fasterxml.jackson.annotation.JsonProperty("databaseId")
private String databaseId;
@@ -62,15 +53,6 @@ public Builder databaseId(String databaseId) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInGBs")
- private Double databaseSizeInGBs;
-
- public Builder databaseSizeInGBs(Double databaseSizeInGBs) {
- this.databaseSizeInGBs = databaseSizeInGBs;
- this.__explicitlySet__.add("databaseSizeInGBs");
- return this;
- }
-
@com.fasterxml.jackson.annotation.JsonProperty("displayName")
private String displayName;
@@ -80,12 +62,30 @@ public Builder displayName(String displayName) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private String id;
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ private Type type;
- public Builder id(String id) {
- this.id = id;
- this.__explicitlySet__.add("id");
+ public Builder type(Type type) {
+ this.type = type;
+ this.__explicitlySet__.add("type");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
+ private java.util.Date timeStarted;
+
+ public Builder timeStarted(java.util.Date timeStarted) {
+ this.timeStarted = timeStarted;
+ this.__explicitlySet__.add("timeStarted");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("timeEnded")
+ private java.util.Date timeEnded;
+
+ public Builder timeEnded(java.util.Date timeEnded) {
+ this.timeEnded = timeEnded;
+ this.__explicitlySet__.add("timeEnded");
return this;
}
@@ -98,6 +98,15 @@ public Builder lifecycleDetails(String lifecycleDetails) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain")
+ private String availabilityDomain;
+
+ public Builder availabilityDomain(String availabilityDomain) {
+ this.availabilityDomain = availabilityDomain;
+ this.__explicitlySet__.add("availabilityDomain");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
private LifecycleState lifecycleState;
@@ -107,30 +116,21 @@ public Builder lifecycleState(LifecycleState lifecycleState) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("timeEnded")
- private java.util.Date timeEnded;
-
- public Builder timeEnded(java.util.Date timeEnded) {
- this.timeEnded = timeEnded;
- this.__explicitlySet__.add("timeEnded");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
- private java.util.Date timeStarted;
+ @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition")
+ private DatabaseEdition databaseEdition;
- public Builder timeStarted(java.util.Date timeStarted) {
- this.timeStarted = timeStarted;
- this.__explicitlySet__.add("timeStarted");
+ public Builder databaseEdition(DatabaseEdition databaseEdition) {
+ this.databaseEdition = databaseEdition;
+ this.__explicitlySet__.add("databaseEdition");
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("type")
- private Type type;
+ @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInGBs")
+ private Double databaseSizeInGBs;
- public Builder type(Type type) {
- this.type = type;
- this.__explicitlySet__.add("type");
+ public Builder databaseSizeInGBs(Double databaseSizeInGBs) {
+ this.databaseSizeInGBs = databaseSizeInGBs;
+ this.__explicitlySet__.add("databaseSizeInGBs");
return this;
}
@@ -140,18 +140,18 @@ public Builder type(Type type) {
public BackupSummary build() {
BackupSummary __instance__ =
new BackupSummary(
- availabilityDomain,
+ id,
compartmentId,
- databaseEdition,
databaseId,
- databaseSizeInGBs,
displayName,
- id,
+ type,
+ timeStarted,
+ timeEnded,
lifecycleDetails,
+ availabilityDomain,
lifecycleState,
- timeEnded,
- timeStarted,
- type);
+ databaseEdition,
+ databaseSizeInGBs);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -159,18 +159,18 @@ public BackupSummary build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(BackupSummary o) {
Builder copiedBuilder =
- availabilityDomain(o.getAvailabilityDomain())
+ id(o.getId())
.compartmentId(o.getCompartmentId())
- .databaseEdition(o.getDatabaseEdition())
.databaseId(o.getDatabaseId())
- .databaseSizeInGBs(o.getDatabaseSizeInGBs())
.displayName(o.getDisplayName())
- .id(o.getId())
+ .type(o.getType())
+ .timeStarted(o.getTimeStarted())
+ .timeEnded(o.getTimeEnded())
.lifecycleDetails(o.getLifecycleDetails())
+ .availabilityDomain(o.getAvailabilityDomain())
.lifecycleState(o.getLifecycleState())
- .timeEnded(o.getTimeEnded())
- .timeStarted(o.getTimeStarted())
- .type(o.getType());
+ .databaseEdition(o.getDatabaseEdition())
+ .databaseSizeInGBs(o.getDatabaseSizeInGBs());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -185,26 +185,35 @@ public static Builder builder() {
}
/**
- * The name of the availability domain where the database backup is stored.
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain")
- String availabilityDomain;
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ String id;
/**
* The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
**/
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
String compartmentId;
+
/**
- * The Oracle Database edition of the DB system from which the database backup was taken.
- *
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("databaseId")
+ String databaseId;
+
+ /**
+ * The user-friendly name for the backup. The name does not have to be unique.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("displayName")
+ String displayName;
+ /**
+ * The type of backup.
**/
@lombok.extern.slf4j.Slf4j
- public enum DatabaseEdition {
- StandardEdition("STANDARD_EDITION"),
- EnterpriseEdition("ENTERPRISE_EDITION"),
- EnterpriseEditionHighPerformance("ENTERPRISE_EDITION_HIGH_PERFORMANCE"),
- EnterpriseEditionExtremePerformance("ENTERPRISE_EDITION_EXTREME_PERFORMANCE"),
+ public enum Type {
+ Incremental("INCREMENTAL"),
+ Full("FULL"),
/**
* This value is used if a service returns a value for this enum that is not recognized by this
@@ -213,18 +222,18 @@ public enum DatabaseEdition {
UnknownEnumValue(null);
private final String value;
- private static java.util.Map map;
+ private static java.util.Map map;
static {
map = new java.util.HashMap<>();
- for (DatabaseEdition v : DatabaseEdition.values()) {
+ for (Type v : Type.values()) {
if (v != UnknownEnumValue) {
map.put(v.getValue(), v);
}
}
}
- DatabaseEdition(String value) {
+ Type(String value) {
this.value = value;
}
@@ -234,53 +243,44 @@ public String getValue() {
}
@com.fasterxml.jackson.annotation.JsonCreator
- public static DatabaseEdition create(String key) {
+ public static Type create(String key) {
if (map.containsKey(key)) {
return map.get(key);
}
LOG.warn(
- "Received unknown value '{}' for enum 'DatabaseEdition', returning UnknownEnumValue",
- key);
+ "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key);
return UnknownEnumValue;
}
};
/**
- * The Oracle Database edition of the DB system from which the database backup was taken.
- *
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition")
- DatabaseEdition databaseEdition;
-
- /**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("databaseId")
- String databaseId;
-
- /**
- * The size of the database in gigabytes at the time the backup was taken.
- *
+ * The type of backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInGBs")
- Double databaseSizeInGBs;
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ Type type;
/**
- * The user-friendly name for the backup. The name does not have to be unique.
+ * The date and time the backup started.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("displayName")
- String displayName;
+ @com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
+ java.util.Date timeStarted;
/**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup.
+ * The date and time the backup was completed.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- String id;
+ @com.fasterxml.jackson.annotation.JsonProperty("timeEnded")
+ java.util.Date timeEnded;
/**
* Additional information about the current lifecycleState.
**/
@com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
String lifecycleDetails;
+
+ /**
+ * The name of the availability domain where the database backup is stored.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain")
+ String availabilityDomain;
/**
* The current state of the backup.
**/
@@ -336,25 +336,16 @@ public static LifecycleState create(String key) {
**/
@com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
LifecycleState lifecycleState;
-
- /**
- * The date and time the backup was completed.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("timeEnded")
- java.util.Date timeEnded;
-
- /**
- * The date and time the backup started.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("timeStarted")
- java.util.Date timeStarted;
/**
- * The type of backup.
+ * The Oracle Database edition of the DB system from which the database backup was taken.
+ *
**/
@lombok.extern.slf4j.Slf4j
- public enum Type {
- Incremental("INCREMENTAL"),
- Full("FULL"),
+ public enum DatabaseEdition {
+ StandardEdition("STANDARD_EDITION"),
+ EnterpriseEdition("ENTERPRISE_EDITION"),
+ EnterpriseEditionHighPerformance("ENTERPRISE_EDITION_HIGH_PERFORMANCE"),
+ EnterpriseEditionExtremePerformance("ENTERPRISE_EDITION_EXTREME_PERFORMANCE"),
/**
* This value is used if a service returns a value for this enum that is not recognized by this
@@ -363,18 +354,18 @@ public enum Type {
UnknownEnumValue(null);
private final String value;
- private static java.util.Map map;
+ private static java.util.Map map;
static {
map = new java.util.HashMap<>();
- for (Type v : Type.values()) {
+ for (DatabaseEdition v : DatabaseEdition.values()) {
if (v != UnknownEnumValue) {
map.put(v.getValue(), v);
}
}
}
- Type(String value) {
+ DatabaseEdition(String value) {
this.value = value;
}
@@ -384,20 +375,29 @@ public String getValue() {
}
@com.fasterxml.jackson.annotation.JsonCreator
- public static Type create(String key) {
+ public static DatabaseEdition create(String key) {
if (map.containsKey(key)) {
return map.get(key);
}
LOG.warn(
- "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key);
+ "Received unknown value '{}' for enum 'DatabaseEdition', returning UnknownEnumValue",
+ key);
return UnknownEnumValue;
}
};
/**
- * The type of backup.
+ * The Oracle Database edition of the DB system from which the database backup was taken.
+ *
**/
- @com.fasterxml.jackson.annotation.JsonProperty("type")
- Type type;
+ @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition")
+ DatabaseEdition databaseEdition;
+
+ /**
+ * The size of the database in gigabytes at the time the backup was taken.
+ *
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInGBs")
+ Double databaseSizeInGBs;
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CompleteExternalBackupJobDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CompleteExternalBackupJobDetails.java
index 567c63bf5f1..9db92ff03a9 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CompleteExternalBackupJobDetails.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CompleteExternalBackupJobDetails.java
@@ -24,6 +24,15 @@ public class CompleteExternalBackupJobDetails {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPath")
+ private String tdeWalletPath;
+
+ public Builder tdeWalletPath(String tdeWalletPath) {
+ this.tdeWalletPath = tdeWalletPath;
+ this.__explicitlySet__.add("tdeWalletPath");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("cfBackupHandle")
private String cfBackupHandle;
@@ -33,24 +42,6 @@ public Builder cfBackupHandle(String cfBackupHandle) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("dataSize")
- private Long dataSize;
-
- public Builder dataSize(Long dataSize) {
- this.dataSize = dataSize;
- this.__explicitlySet__.add("dataSize");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("redoSize")
- private Long redoSize;
-
- public Builder redoSize(Long redoSize) {
- this.redoSize = redoSize;
- this.__explicitlySet__.add("redoSize");
- return this;
- }
-
@com.fasterxml.jackson.annotation.JsonProperty("spfBackupHandle")
private String spfBackupHandle;
@@ -69,12 +60,21 @@ public Builder sqlPatches(java.util.List sqlPatches) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPath")
- private String tdeWalletPath;
+ @com.fasterxml.jackson.annotation.JsonProperty("dataSize")
+ private Long dataSize;
- public Builder tdeWalletPath(String tdeWalletPath) {
- this.tdeWalletPath = tdeWalletPath;
- this.__explicitlySet__.add("tdeWalletPath");
+ public Builder dataSize(Long dataSize) {
+ this.dataSize = dataSize;
+ this.__explicitlySet__.add("dataSize");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("redoSize")
+ private Long redoSize;
+
+ public Builder redoSize(Long redoSize) {
+ this.redoSize = redoSize;
+ this.__explicitlySet__.add("redoSize");
return this;
}
@@ -84,12 +84,12 @@ public Builder tdeWalletPath(String tdeWalletPath) {
public CompleteExternalBackupJobDetails build() {
CompleteExternalBackupJobDetails __instance__ =
new CompleteExternalBackupJobDetails(
+ tdeWalletPath,
cfBackupHandle,
- dataSize,
- redoSize,
spfBackupHandle,
sqlPatches,
- tdeWalletPath);
+ dataSize,
+ redoSize);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -97,12 +97,12 @@ public CompleteExternalBackupJobDetails build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(CompleteExternalBackupJobDetails o) {
Builder copiedBuilder =
- cfBackupHandle(o.getCfBackupHandle())
- .dataSize(o.getDataSize())
- .redoSize(o.getRedoSize())
+ tdeWalletPath(o.getTdeWalletPath())
+ .cfBackupHandle(o.getCfBackupHandle())
.spfBackupHandle(o.getSpfBackupHandle())
.sqlPatches(o.getSqlPatches())
- .tdeWalletPath(o.getTdeWalletPath());
+ .dataSize(o.getDataSize())
+ .redoSize(o.getRedoSize());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -117,22 +117,16 @@ public static Builder builder() {
}
/**
- * The handle of the control file backup.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("cfBackupHandle")
- String cfBackupHandle;
-
- /**
- * The size of the data in the database, in megabytes.
+ * If the database being backed up is TDE enabled, this will be the path to the associated TDE wallet in Object Storage.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("dataSize")
- Long dataSize;
+ @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPath")
+ String tdeWalletPath;
/**
- * The size of the redo in the database, in megabytes.
+ * The handle of the control file backup.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("redoSize")
- Long redoSize;
+ @com.fasterxml.jackson.annotation.JsonProperty("cfBackupHandle")
+ String cfBackupHandle;
/**
* The handle of the spfile backup.
@@ -147,10 +141,16 @@ public static Builder builder() {
java.util.List sqlPatches;
/**
- * If the database being backed up is TDE enabled, this will be the path to the associated TDE wallet in Object Storage.
+ * The size of the data in the database, in megabytes.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPath")
- String tdeWalletPath;
+ @com.fasterxml.jackson.annotation.JsonProperty("dataSize")
+ Long dataSize;
+
+ /**
+ * The size of the redo in the database, in megabytes.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("redoSize")
+ Long redoSize;
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDataWarehouseBackupDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDataWarehouseBackupDetails.java
index eb9cd8b30fc..58d76a35ba9 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDataWarehouseBackupDetails.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDataWarehouseBackupDetails.java
@@ -27,15 +27,6 @@ public class CreateAutonomousDataWarehouseBackupDetails {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
- @com.fasterxml.jackson.annotation.JsonProperty("autonomousDataWarehouseId")
- private String autonomousDataWarehouseId;
-
- public Builder autonomousDataWarehouseId(String autonomousDataWarehouseId) {
- this.autonomousDataWarehouseId = autonomousDataWarehouseId;
- this.__explicitlySet__.add("autonomousDataWarehouseId");
- return this;
- }
-
@com.fasterxml.jackson.annotation.JsonProperty("displayName")
private String displayName;
@@ -45,13 +36,22 @@ public Builder displayName(String displayName) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("autonomousDataWarehouseId")
+ private String autonomousDataWarehouseId;
+
+ public Builder autonomousDataWarehouseId(String autonomousDataWarehouseId) {
+ this.autonomousDataWarehouseId = autonomousDataWarehouseId;
+ this.__explicitlySet__.add("autonomousDataWarehouseId");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
public CreateAutonomousDataWarehouseBackupDetails build() {
CreateAutonomousDataWarehouseBackupDetails __instance__ =
new CreateAutonomousDataWarehouseBackupDetails(
- autonomousDataWarehouseId, displayName);
+ displayName, autonomousDataWarehouseId);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -59,8 +59,8 @@ public CreateAutonomousDataWarehouseBackupDetails build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(CreateAutonomousDataWarehouseBackupDetails o) {
Builder copiedBuilder =
- autonomousDataWarehouseId(o.getAutonomousDataWarehouseId())
- .displayName(o.getDisplayName());
+ displayName(o.getDisplayName())
+ .autonomousDataWarehouseId(o.getAutonomousDataWarehouseId());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -74,18 +74,18 @@ public static Builder builder() {
return new Builder();
}
- /**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("autonomousDataWarehouseId")
- String autonomousDataWarehouseId;
-
/**
* The user-friendly name for the backup. The name does not have to be unique.
**/
@com.fasterxml.jackson.annotation.JsonProperty("displayName")
String displayName;
+ /**
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("autonomousDataWarehouseId")
+ String autonomousDataWarehouseId;
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
}
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDataWarehouseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDataWarehouseDetails.java
index b5472827a4b..2b1ce2fa753 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDataWarehouseDetails.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDataWarehouseDetails.java
@@ -27,15 +27,6 @@ public class CreateAutonomousDataWarehouseDetails {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
- @com.fasterxml.jackson.annotation.JsonProperty("adminPassword")
- private String adminPassword;
-
- public Builder adminPassword(String adminPassword) {
- this.adminPassword = adminPassword;
- this.__explicitlySet__.add("adminPassword");
- return this;
- }
-
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
private String compartmentId;
@@ -45,6 +36,15 @@ public Builder compartmentId(String compartmentId) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("dbName")
+ private String dbName;
+
+ public Builder dbName(String dbName) {
+ this.dbName = dbName;
+ this.__explicitlySet__.add("dbName");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount")
private Integer cpuCoreCount;
@@ -63,22 +63,12 @@ public Builder dataStorageSizeInTBs(Integer dataStorageSizeInTBs) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("dbName")
- private String dbName;
-
- public Builder dbName(String dbName) {
- this.dbName = dbName;
- this.__explicitlySet__.add("dbName");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- private java.util.Map> definedTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword")
+ private String adminPassword;
- public Builder definedTags(
- java.util.Map> definedTags) {
- this.definedTags = definedTags;
- this.__explicitlySet__.add("definedTags");
+ public Builder adminPassword(String adminPassword) {
+ this.adminPassword = adminPassword;
+ this.__explicitlySet__.add("adminPassword");
return this;
}
@@ -91,6 +81,15 @@ public Builder displayName(String displayName) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("licenseModel")
+ private LicenseModel licenseModel;
+
+ public Builder licenseModel(LicenseModel licenseModel) {
+ this.licenseModel = licenseModel;
+ this.__explicitlySet__.add("licenseModel");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
private java.util.Map freeformTags;
@@ -100,12 +99,13 @@ public Builder freeformTags(java.util.Map freeformTags) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("licenseModel")
- private LicenseModel licenseModel;
+ @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
+ private java.util.Map> definedTags;
- public Builder licenseModel(LicenseModel licenseModel) {
- this.licenseModel = licenseModel;
- this.__explicitlySet__.add("licenseModel");
+ public Builder definedTags(
+ java.util.Map> definedTags) {
+ this.definedTags = definedTags;
+ this.__explicitlySet__.add("definedTags");
return this;
}
@@ -115,15 +115,15 @@ public Builder licenseModel(LicenseModel licenseModel) {
public CreateAutonomousDataWarehouseDetails build() {
CreateAutonomousDataWarehouseDetails __instance__ =
new CreateAutonomousDataWarehouseDetails(
- adminPassword,
compartmentId,
+ dbName,
cpuCoreCount,
dataStorageSizeInTBs,
- dbName,
- definedTags,
+ adminPassword,
displayName,
+ licenseModel,
freeformTags,
- licenseModel);
+ definedTags);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -131,15 +131,15 @@ public CreateAutonomousDataWarehouseDetails build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(CreateAutonomousDataWarehouseDetails o) {
Builder copiedBuilder =
- adminPassword(o.getAdminPassword())
- .compartmentId(o.getCompartmentId())
+ compartmentId(o.getCompartmentId())
+ .dbName(o.getDbName())
.cpuCoreCount(o.getCpuCoreCount())
.dataStorageSizeInTBs(o.getDataStorageSizeInTBs())
- .dbName(o.getDbName())
- .definedTags(o.getDefinedTags())
+ .adminPassword(o.getAdminPassword())
.displayName(o.getDisplayName())
+ .licenseModel(o.getLicenseModel())
.freeformTags(o.getFreeformTags())
- .licenseModel(o.getLicenseModel());
+ .definedTags(o.getDefinedTags());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -153,18 +153,18 @@ public static Builder builder() {
return new Builder();
}
- /**
- * A strong password for Admin. The password must be between 12 and 60 characters long, and must contain at least 1 uppercase, 1 lowercase and 2 numeric characters. It cannot contain the double quote symbol (\"). It must be different than the last 4 passwords.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("adminPassword")
- String adminPassword;
-
/**
* The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment of the Autonomous Data Warehouse.
**/
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
String compartmentId;
+ /**
+ * The database name. The name must begin with an alphabetic character and can contain a maximum of 14 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("dbName")
+ String dbName;
+
/**
* The number of CPU Cores to be made available to the database.
**/
@@ -179,36 +179,16 @@ public static Builder builder() {
Integer dataStorageSizeInTBs;
/**
- * The database name. The name must begin with an alphabetic character and can contain a maximum of 14 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy.
+ * The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (\") or the username \"admin\", regardless of casing.
**/
- @com.fasterxml.jackson.annotation.JsonProperty("dbName")
- String dbName;
-
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace.
- * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
- *
- * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
- *
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- java.util.Map> definedTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword")
+ String adminPassword;
/**
* The user-friendly name for the Autonomous Data Warehouse. The name does not have to be unique.
**/
@com.fasterxml.jackson.annotation.JsonProperty("displayName")
String displayName;
-
- /**
- * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
- * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
- *
- * Example: `{\"Department\": \"Finance\"}`
- *
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- java.util.Map freeformTags;
/**
* The Oracle license model that applies to the Oracle Autonomous Data Warehouse. The default is BRING_YOUR_OWN_LICENSE.
*
@@ -252,6 +232,26 @@ public static LicenseModel create(String key) {
@com.fasterxml.jackson.annotation.JsonProperty("licenseModel")
LicenseModel licenseModel;
+ /**
+ * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
+ * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
+ *
+ * Example: `{\"Department\": \"Finance\"}`
+ *
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
+ java.util.Map freeformTags;
+
+ /**
+ * Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ * For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
+ *
+ * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+ *
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
+ java.util.Map> definedTags;
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
}
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBackupDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBackupDetails.java
index 4d3e0a29388..8db00643631 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBackupDetails.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBackupDetails.java
@@ -27,15 +27,6 @@ public class CreateAutonomousDatabaseBackupDetails {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
- @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseId")
- private String autonomousDatabaseId;
-
- public Builder autonomousDatabaseId(String autonomousDatabaseId) {
- this.autonomousDatabaseId = autonomousDatabaseId;
- this.__explicitlySet__.add("autonomousDatabaseId");
- return this;
- }
-
@com.fasterxml.jackson.annotation.JsonProperty("displayName")
private String displayName;
@@ -45,12 +36,21 @@ public Builder displayName(String displayName) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseId")
+ private String autonomousDatabaseId;
+
+ public Builder autonomousDatabaseId(String autonomousDatabaseId) {
+ this.autonomousDatabaseId = autonomousDatabaseId;
+ this.__explicitlySet__.add("autonomousDatabaseId");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
public CreateAutonomousDatabaseBackupDetails build() {
CreateAutonomousDatabaseBackupDetails __instance__ =
- new CreateAutonomousDatabaseBackupDetails(autonomousDatabaseId, displayName);
+ new CreateAutonomousDatabaseBackupDetails(displayName, autonomousDatabaseId);
__instance__.__explicitlySet__.addAll(__explicitlySet__);
return __instance__;
}
@@ -58,8 +58,8 @@ public CreateAutonomousDatabaseBackupDetails build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(CreateAutonomousDatabaseBackupDetails o) {
Builder copiedBuilder =
- autonomousDatabaseId(o.getAutonomousDatabaseId())
- .displayName(o.getDisplayName());
+ displayName(o.getDisplayName())
+ .autonomousDatabaseId(o.getAutonomousDatabaseId());
copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
return copiedBuilder;
@@ -73,18 +73,18 @@ public static Builder builder() {
return new Builder();
}
- /**
- * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database backup.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseId")
- String autonomousDatabaseId;
-
/**
* The user-friendly name for the backup. The name does not have to be unique.
**/
@com.fasterxml.jackson.annotation.JsonProperty("displayName")
String displayName;
+ /**
+ * The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database backup.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseId")
+ String autonomousDatabaseId;
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
}
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseDetails.java
index 1737e366eb3..648f02ed1ed 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseDetails.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseDetails.java
@@ -27,15 +27,6 @@ public class CreateAutonomousDatabaseDetails {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@lombok.experimental.Accessors(fluent = true)
public static class Builder {
- @com.fasterxml.jackson.annotation.JsonProperty("adminPassword")
- private String adminPassword;
-
- public Builder adminPassword(String adminPassword) {
- this.adminPassword = adminPassword;
- this.__explicitlySet__.add("adminPassword");
- return this;
- }
-
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
private String compartmentId;
@@ -45,6 +36,15 @@ public Builder compartmentId(String compartmentId) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("dbName")
+ private String dbName;
+
+ public Builder dbName(String dbName) {
+ this.dbName = dbName;
+ this.__explicitlySet__.add("dbName");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount")
private Integer cpuCoreCount;
@@ -63,22 +63,12 @@ public Builder dataStorageSizeInTBs(Integer dataStorageSizeInTBs) {
return this;
}
- @com.fasterxml.jackson.annotation.JsonProperty("dbName")
- private String dbName;
-
- public Builder dbName(String dbName) {
- this.dbName = dbName;
- this.__explicitlySet__.add("dbName");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- private java.util.Map> definedTags;
+ @com.fasterxml.jackson.annotation.JsonProperty("adminPassword")
+ private String adminPassword;
- public Builder definedTags(
- java.util.Map> definedTags) {
- this.definedTags = definedTags;
- this.__explicitlySet__.add("definedTags");
+ public Builder adminPassword(String adminPassword) {
+ this.adminPassword = adminPassword;
+ this.__explicitlySet__.add("adminPassword");
return this;
}
@@ -91,6 +81,15 @@ public Builder displayName(String displayName) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("licenseModel")
+ private LicenseModel licenseModel;
+
+ public Builder licenseModel(LicenseModel licenseModel) {
+ this.licenseModel = licenseModel;
+ this.__explicitlySet__.add("licenseModel");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
private java.util.Map