com.google.api.services.backupdr.v1.model.FetchAccessTokenResponse 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.backupdr.v1.model;
/**
* Response message for FetchAccessToken.
*
* 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 Backup and DR Service 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 FetchAccessTokenResponse extends com.google.api.client.json.GenericJson {
/**
* The token is valid until this time.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String expireTime;
/**
* The location in bucket that can be used for reading.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String readLocation;
/**
* The downscoped token that was created.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String token;
/**
* The location in bucket that can be used for writing.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String writeLocation;
/**
* The token is valid until this time.
* @return value or {@code null} for none
*/
public String getExpireTime() {
return expireTime;
}
/**
* The token is valid until this time.
* @param expireTime expireTime or {@code null} for none
*/
public FetchAccessTokenResponse setExpireTime(String expireTime) {
this.expireTime = expireTime;
return this;
}
/**
* The location in bucket that can be used for reading.
* @return value or {@code null} for none
*/
public java.lang.String getReadLocation() {
return readLocation;
}
/**
* The location in bucket that can be used for reading.
* @param readLocation readLocation or {@code null} for none
*/
public FetchAccessTokenResponse setReadLocation(java.lang.String readLocation) {
this.readLocation = readLocation;
return this;
}
/**
* The downscoped token that was created.
* @return value or {@code null} for none
*/
public java.lang.String getToken() {
return token;
}
/**
* The downscoped token that was created.
* @param token token or {@code null} for none
*/
public FetchAccessTokenResponse setToken(java.lang.String token) {
this.token = token;
return this;
}
/**
* The location in bucket that can be used for writing.
* @return value or {@code null} for none
*/
public java.lang.String getWriteLocation() {
return writeLocation;
}
/**
* The location in bucket that can be used for writing.
* @param writeLocation writeLocation or {@code null} for none
*/
public FetchAccessTokenResponse setWriteLocation(java.lang.String writeLocation) {
this.writeLocation = writeLocation;
return this;
}
@Override
public FetchAccessTokenResponse set(String fieldName, Object value) {
return (FetchAccessTokenResponse) super.set(fieldName, value);
}
@Override
public FetchAccessTokenResponse clone() {
return (FetchAccessTokenResponse) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy