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

com.oracle.bmc.announcementsservice.model.AnnouncementsPreferences 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.announcementsservice.model;

/**
 * The object for announcement email preferences.
 * 
* 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: 0.0.1") @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = AnnouncementsPreferences.Builder.class ) @lombok.ToString(callSuper = true) @lombok.EqualsAndHashCode(callSuper = true) @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, property = "type" ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) @lombok.Builder(builderClassName = "Builder", toBuilder = true) public class AnnouncementsPreferences extends BaseAnnouncementsPreferences { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @lombok.experimental.Accessors(fluent = true) public static class Builder { @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; public Builder compartmentId(String compartmentId) { this.compartmentId = compartmentId; this.__explicitlySet__.add("compartmentId"); return this; } @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("isUnsubscribed") private Boolean isUnsubscribed; public Builder isUnsubscribed(Boolean isUnsubscribed) { this.isUnsubscribed = isUnsubscribed; this.__explicitlySet__.add("isUnsubscribed"); 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("timeUpdated") private java.util.Date timeUpdated; public Builder timeUpdated(java.util.Date timeUpdated) { this.timeUpdated = timeUpdated; this.__explicitlySet__.add("timeUpdated"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("preferenceType") private BaseCreateAnnouncementsPreferencesDetails.PreferenceType preferenceType; public Builder preferenceType( BaseCreateAnnouncementsPreferencesDetails.PreferenceType preferenceType) { this.preferenceType = preferenceType; this.__explicitlySet__.add("preferenceType"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public AnnouncementsPreferences build() { AnnouncementsPreferences __instance__ = new AnnouncementsPreferences( compartmentId, id, isUnsubscribed, timeCreated, timeUpdated, preferenceType); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(AnnouncementsPreferences o) { Builder copiedBuilder = compartmentId(o.getCompartmentId()) .id(o.getId()) .isUnsubscribed(o.getIsUnsubscribed()) .timeCreated(o.getTimeCreated()) .timeUpdated(o.getTimeUpdated()) .preferenceType(o.getPreferenceType()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; } } /** * Create a new builder. */ public static Builder builder() { return new Builder(); } @Deprecated public AnnouncementsPreferences( String compartmentId, String id, Boolean isUnsubscribed, java.util.Date timeCreated, java.util.Date timeUpdated, BaseCreateAnnouncementsPreferencesDetails.PreferenceType preferenceType) { super(compartmentId, id, isUnsubscribed, timeCreated, timeUpdated, preferenceType); } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy