com.google.api.services.drive.model.Permission 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://code.google.com/p/google-apis-client-generator/
* (build: 2015-06-30 18:20:40 UTC)
* on 2015-07-10 at 04:38:24 UTC
* Modify at your own risk.
*/
package com.google.api.services.drive.model;
/**
* A single permission for a file.
*
* 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 API. For a detailed explanation see:
* http://code.google.com/p/google-http-java-client/wiki/JSON
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class Permission extends com.google.api.client.json.GenericJson {
/**
* Any additional roles that this permission describes.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List additionalRoles;
/**
* An etag for this permission.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String etag;
/**
* The kind of this permission. This is always drive#permission
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;
/**
* The role that this permission describes. (For example: reader, writer, owner)
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String role;
/**
* The type of permission (For example: user, group etc).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String type;
/**
* Any additional roles that this permission describes.
* @return value or {@code null} for none
*/
public java.util.List getAdditionalRoles() {
return additionalRoles;
}
/**
* Any additional roles that this permission describes.
* @param additionalRoles additionalRoles or {@code null} for none
*/
public Permission setAdditionalRoles(java.util.List additionalRoles) {
this.additionalRoles = additionalRoles;
return this;
}
/**
* An etag for this permission.
* @return value or {@code null} for none
*/
public java.lang.String getEtag() {
return etag;
}
/**
* An etag for this permission.
* @param etag etag or {@code null} for none
*/
public Permission setEtag(java.lang.String etag) {
this.etag = etag;
return this;
}
/**
* The kind of this permission. This is always drive#permission
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}
/**
* The kind of this permission. This is always drive#permission
* @param kind kind or {@code null} for none
*/
public Permission setKind(java.lang.String kind) {
this.kind = kind;
return this;
}
/**
* The role that this permission describes. (For example: reader, writer, owner)
* @return value or {@code null} for none
*/
public java.lang.String getRole() {
return role;
}
/**
* The role that this permission describes. (For example: reader, writer, owner)
* @param role role or {@code null} for none
*/
public Permission setRole(java.lang.String role) {
this.role = role;
return this;
}
/**
* The type of permission (For example: user, group etc).
* @return value or {@code null} for none
*/
public java.lang.String getType() {
return type;
}
/**
* The type of permission (For example: user, group etc).
* @param type type or {@code null} for none
*/
public Permission setType(java.lang.String type) {
this.type = type;
return this;
}
@Override
public Permission set(String fieldName, Object value) {
return (Permission) super.set(fieldName, value);
}
@Override
public Permission clone() {
return (Permission) super.clone();
}
}