All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.bmc.mysql.model.BackupSummary Maven / Gradle / Ivy

/**
 * Copyright (c) 2016, 2021, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */
package com.oracle.bmc.mysql.model;

/**
 * Details of Backups such as OCID, description, backupType, and so on.
 * 

* 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.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = BackupSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) @lombok.Builder(builderClassName = "Builder", toBuilder = true) public class BackupSummary { @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("displayName") private String displayName; public Builder displayName(String displayName) { this.displayName = displayName; this.__explicitlySet__.add("displayName"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("description") private String description; public Builder description(String description) { this.description = description; this.__explicitlySet__.add("description"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; public Builder timeCreated(java.util.Date timeCreated) { this.timeCreated = timeCreated; this.__explicitlySet__.add("timeCreated"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private Backup.LifecycleState lifecycleState; public Builder lifecycleState(Backup.LifecycleState lifecycleState) { this.lifecycleState = lifecycleState; this.__explicitlySet__.add("lifecycleState"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("backupType") private Backup.BackupType backupType; public Builder backupType(Backup.BackupType backupType) { this.backupType = backupType; this.__explicitlySet__.add("backupType"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("creationType") private Backup.CreationType creationType; public Builder creationType(Backup.CreationType creationType) { this.creationType = creationType; this.__explicitlySet__.add("creationType"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") private String dbSystemId; public Builder dbSystemId(String dbSystemId) { this.dbSystemId = dbSystemId; this.__explicitlySet__.add("dbSystemId"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") private Integer dataStorageSizeInGBs; public Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs) { this.dataStorageSizeInGBs = dataStorageSizeInGBs; this.__explicitlySet__.add("dataStorageSizeInGBs"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("backupSizeInGBs") private Integer backupSizeInGBs; public Builder backupSizeInGBs(Integer backupSizeInGBs) { this.backupSizeInGBs = backupSizeInGBs; this.__explicitlySet__.add("backupSizeInGBs"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("retentionInDays") private Integer retentionInDays; public Builder retentionInDays(Integer retentionInDays) { this.retentionInDays = retentionInDays; this.__explicitlySet__.add("retentionInDays"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("mysqlVersion") private String mysqlVersion; public Builder mysqlVersion(String mysqlVersion) { this.mysqlVersion = mysqlVersion; this.__explicitlySet__.add("mysqlVersion"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("shapeName") private String shapeName; public Builder shapeName(String shapeName) { this.shapeName = shapeName; this.__explicitlySet__.add("shapeName"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private java.util.Map freeformTags; public Builder freeformTags(java.util.Map freeformTags) { this.freeformTags = freeformTags; this.__explicitlySet__.add("freeformTags"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("definedTags") private java.util.Map> definedTags; public Builder definedTags( java.util.Map> definedTags) { this.definedTags = definedTags; this.__explicitlySet__.add("definedTags"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public BackupSummary build() { BackupSummary __instance__ = new BackupSummary( id, displayName, description, timeCreated, lifecycleState, backupType, creationType, dbSystemId, dataStorageSizeInGBs, backupSizeInGBs, retentionInDays, mysqlVersion, shapeName, freeformTags, definedTags); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(BackupSummary o) { Builder copiedBuilder = id(o.getId()) .displayName(o.getDisplayName()) .description(o.getDescription()) .timeCreated(o.getTimeCreated()) .lifecycleState(o.getLifecycleState()) .backupType(o.getBackupType()) .creationType(o.getCreationType()) .dbSystemId(o.getDbSystemId()) .dataStorageSizeInGBs(o.getDataStorageSizeInGBs()) .backupSizeInGBs(o.getBackupSizeInGBs()) .retentionInDays(o.getRetentionInDays()) .mysqlVersion(o.getMysqlVersion()) .shapeName(o.getShapeName()) .freeformTags(o.getFreeformTags()) .definedTags(o.getDefinedTags()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; } } /** * Create a new builder. */ public static Builder builder() { return new Builder(); } /** * OCID of the backup. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") String id; /** * A user-supplied display name for the backup. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; /** * A user-supplied description of the backup. **/ @com.fasterxml.jackson.annotation.JsonProperty("description") String description; /** * The time the backup was created. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") java.util.Date timeCreated; /** * The state of the backup. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") Backup.LifecycleState lifecycleState; /** * The type of backup. **/ @com.fasterxml.jackson.annotation.JsonProperty("backupType") Backup.BackupType backupType; /** * If the backup was created automatically, or by a manual request. **/ @com.fasterxml.jackson.annotation.JsonProperty("creationType") Backup.CreationType creationType; /** * The OCID of the DB System the Backup is associated with. **/ @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") String dbSystemId; /** * Size of the data volume in GiBs. **/ @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") Integer dataStorageSizeInGBs; /** * The size of the backup in GiBs. **/ @com.fasterxml.jackson.annotation.JsonProperty("backupSizeInGBs") Integer backupSizeInGBs; /** * Number of days to retain this backup. **/ @com.fasterxml.jackson.annotation.JsonProperty("retentionInDays") Integer retentionInDays; /** * The version of the DB System used for backup. **/ @com.fasterxml.jackson.annotation.JsonProperty("mysqlVersion") String mysqlVersion; /** * The shape of the DB System instance used for backup. **/ @com.fasterxml.jackson.annotation.JsonProperty("shapeName") String shapeName; /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: `{\"bar-key\": \"value\"}` * **/ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") java.util.Map freeformTags; /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` * **/ @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(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy