
com.google.api.services.drivelabels.v2.model.GoogleAppsDriveLabelsV2Lifecycle Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.drivelabels.v2.model;
/**
* The lifecycle state of an object, such as label, field, or choice. The lifecycle enforces the
* following transitions: * `UNPUBLISHED_DRAFT` (starting state) * `UNPUBLISHED_DRAFT` ->
* `PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted) * `PUBLISHED` -> `DISABLED` * `DISABLED` ->
* `PUBLISHED` * `DISABLED` -> (Deleted) The published and disabled states have some distinct
* characteristics: * Published—Some kinds of changes might be made to an object in this state, in
* which case `has_unpublished_changes` will be true. Also, some kinds of changes are not permitted.
* Generally, any change that would invalidate or cause new restrictions on existing metadata
* related to the label are rejected. * Disabled—When disabled, the configured `DisabledPolicy`
* takes effect.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Drive Labels API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GoogleAppsDriveLabelsV2Lifecycle extends com.google.api.client.json.GenericJson {
/**
* The policy that governs how to show a disabled label, field, or selection choice.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleAppsDriveLabelsV2LifecycleDisabledPolicy disabledPolicy;
/**
* Output only. Whether the object associated with this lifecycle has unpublished changes.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean hasUnpublishedChanges;
/**
* Output only. The state of the object associated with this lifecycle.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String state;
/**
* The policy that governs how to show a disabled label, field, or selection choice.
* @return value or {@code null} for none
*/
public GoogleAppsDriveLabelsV2LifecycleDisabledPolicy getDisabledPolicy() {
return disabledPolicy;
}
/**
* The policy that governs how to show a disabled label, field, or selection choice.
* @param disabledPolicy disabledPolicy or {@code null} for none
*/
public GoogleAppsDriveLabelsV2Lifecycle setDisabledPolicy(GoogleAppsDriveLabelsV2LifecycleDisabledPolicy disabledPolicy) {
this.disabledPolicy = disabledPolicy;
return this;
}
/**
* Output only. Whether the object associated with this lifecycle has unpublished changes.
* @return value or {@code null} for none
*/
public java.lang.Boolean getHasUnpublishedChanges() {
return hasUnpublishedChanges;
}
/**
* Output only. Whether the object associated with this lifecycle has unpublished changes.
* @param hasUnpublishedChanges hasUnpublishedChanges or {@code null} for none
*/
public GoogleAppsDriveLabelsV2Lifecycle setHasUnpublishedChanges(java.lang.Boolean hasUnpublishedChanges) {
this.hasUnpublishedChanges = hasUnpublishedChanges;
return this;
}
/**
* Output only. The state of the object associated with this lifecycle.
* @return value or {@code null} for none
*/
public java.lang.String getState() {
return state;
}
/**
* Output only. The state of the object associated with this lifecycle.
* @param state state or {@code null} for none
*/
public GoogleAppsDriveLabelsV2Lifecycle setState(java.lang.String state) {
this.state = state;
return this;
}
@Override
public GoogleAppsDriveLabelsV2Lifecycle set(String fieldName, Object value) {
return (GoogleAppsDriveLabelsV2Lifecycle) super.set(fieldName, value);
}
@Override
public GoogleAppsDriveLabelsV2Lifecycle clone() {
return (GoogleAppsDriveLabelsV2Lifecycle) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy