com.google.api.services.analyticsadmin.v1beta.model.GoogleAnalyticsAdminV1betaAccessDateRange 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.analyticsadmin.v1beta.model;
/**
* A contiguous range of days: startDate, startDate + 1, ..., endDate.
*
* 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 Google Analytics Admin 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 GoogleAnalyticsAdminV1betaAccessDateRange extends com.google.api.client.json.GenericJson {
/**
* The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot be before `startDate`.
* The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is
* inferred based on the current time in the request's time zone.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String endDate;
/**
* The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot be after `endDate`.
* The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is
* inferred based on the current time in the request's time zone.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String startDate;
/**
* The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot be before `startDate`.
* The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is
* inferred based on the current time in the request's time zone.
* @return value or {@code null} for none
*/
public java.lang.String getEndDate() {
return endDate;
}
/**
* The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot be before `startDate`.
* The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is
* inferred based on the current time in the request's time zone.
* @param endDate endDate or {@code null} for none
*/
public GoogleAnalyticsAdminV1betaAccessDateRange setEndDate(java.lang.String endDate) {
this.endDate = endDate;
return this;
}
/**
* The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot be after `endDate`.
* The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is
* inferred based on the current time in the request's time zone.
* @return value or {@code null} for none
*/
public java.lang.String getStartDate() {
return startDate;
}
/**
* The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot be after `endDate`.
* The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is
* inferred based on the current time in the request's time zone.
* @param startDate startDate or {@code null} for none
*/
public GoogleAnalyticsAdminV1betaAccessDateRange setStartDate(java.lang.String startDate) {
this.startDate = startDate;
return this;
}
@Override
public GoogleAnalyticsAdminV1betaAccessDateRange set(String fieldName, Object value) {
return (GoogleAnalyticsAdminV1betaAccessDateRange) super.set(fieldName, value);
}
@Override
public GoogleAnalyticsAdminV1betaAccessDateRange clone() {
return (GoogleAnalyticsAdminV1betaAccessDateRange) super.clone();
}
}