com.google.api.services.youtube.model.VideoStatus Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* 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/google/apis-client-generator/
* (build: 2017-01-11 18:31:16 UTC)
* on 2017-02-02 at 07:18:31 UTC
* Modify at your own risk.
*/
package com.google.api.services.youtube.model;
/**
* Basic details about a video category, such as its localized title.
*
* 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 YouTube Data 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 VideoStatus extends com.google.api.client.json.GenericJson {
/**
* This value indicates if the video can be embedded on another website.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean embeddable;
/**
* This value explains why a video failed to upload. This property is only present if the
* uploadStatus property indicates that the upload failed.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String failureReason;
/**
* The video's license.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String license;
/**
* The video's privacy status.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String privacyStatus;
/**
* This value indicates if the extended video statistics on the watch page can be viewed by
* everyone. Note that the view count, likes, etc will still be visible if this is disabled.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean publicStatsViewable;
/**
* The date and time when the video is scheduled to publish. It can be set only if the privacy
* status of the video is private. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ)
* format.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private com.google.api.client.util.DateTime publishAt;
/**
* This value explains why YouTube rejected an uploaded video. This property is only present if
* the uploadStatus property indicates that the upload was rejected.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String rejectionReason;
/**
* The status of the uploaded video.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String uploadStatus;
/**
* This value indicates if the video can be embedded on another website.
* @return value or {@code null} for none
*/
public java.lang.Boolean getEmbeddable() {
return embeddable;
}
/**
* This value indicates if the video can be embedded on another website.
* @param embeddable embeddable or {@code null} for none
*/
public VideoStatus setEmbeddable(java.lang.Boolean embeddable) {
this.embeddable = embeddable;
return this;
}
/**
* This value explains why a video failed to upload. This property is only present if the
* uploadStatus property indicates that the upload failed.
* @return value or {@code null} for none
*/
public java.lang.String getFailureReason() {
return failureReason;
}
/**
* This value explains why a video failed to upload. This property is only present if the
* uploadStatus property indicates that the upload failed.
* @param failureReason failureReason or {@code null} for none
*/
public VideoStatus setFailureReason(java.lang.String failureReason) {
this.failureReason = failureReason;
return this;
}
/**
* The video's license.
* @return value or {@code null} for none
*/
public java.lang.String getLicense() {
return license;
}
/**
* The video's license.
* @param license license or {@code null} for none
*/
public VideoStatus setLicense(java.lang.String license) {
this.license = license;
return this;
}
/**
* The video's privacy status.
* @return value or {@code null} for none
*/
public java.lang.String getPrivacyStatus() {
return privacyStatus;
}
/**
* The video's privacy status.
* @param privacyStatus privacyStatus or {@code null} for none
*/
public VideoStatus setPrivacyStatus(java.lang.String privacyStatus) {
this.privacyStatus = privacyStatus;
return this;
}
/**
* This value indicates if the extended video statistics on the watch page can be viewed by
* everyone. Note that the view count, likes, etc will still be visible if this is disabled.
* @return value or {@code null} for none
*/
public java.lang.Boolean getPublicStatsViewable() {
return publicStatsViewable;
}
/**
* This value indicates if the extended video statistics on the watch page can be viewed by
* everyone. Note that the view count, likes, etc will still be visible if this is disabled.
* @param publicStatsViewable publicStatsViewable or {@code null} for none
*/
public VideoStatus setPublicStatsViewable(java.lang.Boolean publicStatsViewable) {
this.publicStatsViewable = publicStatsViewable;
return this;
}
/**
* The date and time when the video is scheduled to publish. It can be set only if the privacy
* status of the video is private. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ)
* format.
* @return value or {@code null} for none
*/
public com.google.api.client.util.DateTime getPublishAt() {
return publishAt;
}
/**
* The date and time when the video is scheduled to publish. It can be set only if the privacy
* status of the video is private. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ)
* format.
* @param publishAt publishAt or {@code null} for none
*/
public VideoStatus setPublishAt(com.google.api.client.util.DateTime publishAt) {
this.publishAt = publishAt;
return this;
}
/**
* This value explains why YouTube rejected an uploaded video. This property is only present if
* the uploadStatus property indicates that the upload was rejected.
* @return value or {@code null} for none
*/
public java.lang.String getRejectionReason() {
return rejectionReason;
}
/**
* This value explains why YouTube rejected an uploaded video. This property is only present if
* the uploadStatus property indicates that the upload was rejected.
* @param rejectionReason rejectionReason or {@code null} for none
*/
public VideoStatus setRejectionReason(java.lang.String rejectionReason) {
this.rejectionReason = rejectionReason;
return this;
}
/**
* The status of the uploaded video.
* @return value or {@code null} for none
*/
public java.lang.String getUploadStatus() {
return uploadStatus;
}
/**
* The status of the uploaded video.
* @param uploadStatus uploadStatus or {@code null} for none
*/
public VideoStatus setUploadStatus(java.lang.String uploadStatus) {
this.uploadStatus = uploadStatus;
return this;
}
@Override
public VideoStatus set(String fieldName, Object value) {
return (VideoStatus) super.set(fieldName, value);
}
@Override
public VideoStatus clone() {
return (VideoStatus) super.clone();
}
}