com.treasuredata.client.model.TDSavedQueryUpdateRequestBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of td-client Show documentation
Show all versions of td-client Show documentation
Treasure Data Client for Java.
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
package com.treasuredata.client.model;
import com.google.common.base.Optional;
/**
*
*/
public class TDSavedQueryUpdateRequestBuilder
{
private Optional name = Optional.absent();
private Optional cron = Optional.absent();
private Optional type = Optional.absent();
private Optional query = Optional.absent();
private Optional timezone = Optional.absent();
private Optional delay = Optional.absent();
private Optional database = Optional.absent();
private Optional priority = Optional.absent();
private Optional retryLimit = Optional.absent();
private Optional result = Optional.absent();
private Optional engineVersion = Optional.absent();
TDSavedQueryUpdateRequestBuilder()
{
}
public TDSavedQueryUpdateRequest build()
{
return new TDSavedQueryUpdateRequest(
name,
cron,
type,
query,
timezone,
delay,
database,
priority,
retryLimit,
result,
engineVersion
);
}
public TDSavedQueryUpdateRequestBuilder setName(String name)
{
this.name = Optional.of(name);
return this;
}
public TDSavedQueryUpdateRequestBuilder setCron(String cron)
{
this.cron = Optional.of(cron);
return this;
}
public TDSavedQueryUpdateRequestBuilder setType(TDJob.Type type)
{
this.type = Optional.of(type);
return this;
}
public TDSavedQueryUpdateRequestBuilder setQuery(String query)
{
this.query = Optional.of(query);
return this;
}
public TDSavedQueryUpdateRequestBuilder setTimezone(String timezone)
{
this.timezone = Optional.of(timezone);
return this;
}
public TDSavedQueryUpdateRequestBuilder setDelay(long delay)
{
this.delay = Optional.of(delay);
return this;
}
public TDSavedQueryUpdateRequestBuilder setDatabase(String database)
{
this.database = Optional.of(database);
return this;
}
public TDSavedQueryUpdateRequestBuilder setPriority(int priority)
{
this.priority = Optional.of(priority);
return this;
}
public TDSavedQueryUpdateRequestBuilder setRetryLimit(int retryLimit)
{
this.retryLimit = Optional.of(retryLimit);
return this;
}
public TDSavedQueryUpdateRequestBuilder setResult(String result)
{
this.result = Optional.of(result);
return this;
}
public TDSavedQueryUpdateRequestBuilder setEngineVersion(TDJob.EngineVersion engineVersion)
{
this.engineVersion = Optional.of(engineVersion);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy