Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.appservice.implementation;
import com.microsoft.azure.management.appservice.WebJobType;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.management.appservice.ProxyOnlyResource;
Web Job Information.
/**
* Web Job Information.
*/
@JsonFlatten
public class WebJobInner extends ProxyOnlyResource {
Run command.
/**
* Run command.
*/
@JsonProperty(value = "properties.run_command")
private String runCommand;
Job URL.
/**
* Job URL.
*/
@JsonProperty(value = "properties.url")
private String url;
Extra Info URL.
/**
* Extra Info URL.
*/
@JsonProperty(value = "properties.extra_info_url")
private String extraInfoUrl;
Job type. Possible values include: 'Continuous', 'Triggered'.
/**
* Job type. Possible values include: 'Continuous', 'Triggered'.
*/
@JsonProperty(value = "properties.web_job_type")
private WebJobType webJobType;
Error information.
/**
* Error information.
*/
@JsonProperty(value = "properties.error")
private String error;
Using SDK?.
/**
* Using SDK?.
*/
@JsonProperty(value = "properties.using_sdk")
private Boolean usingSdk;
Job settings.
/**
* Job settings.
*/
@JsonProperty(value = "properties.settings")
private Map<String, Object> settings;
Get run command.
Returns: the runCommand value
/**
* Get run command.
*
* @return the runCommand value
*/
public String runCommand() {
return this.runCommand;
}
Set run command.
Params: - runCommand – the runCommand value to set
Returns: the WebJobInner object itself.
/**
* Set run command.
*
* @param runCommand the runCommand value to set
* @return the WebJobInner object itself.
*/
public WebJobInner withRunCommand(String runCommand) {
this.runCommand = runCommand;
return this;
}
Get job URL.
Returns: the url value
/**
* Get job URL.
*
* @return the url value
*/
public String url() {
return this.url;
}
Set job URL.
Params: - url – the url value to set
Returns: the WebJobInner object itself.
/**
* Set job URL.
*
* @param url the url value to set
* @return the WebJobInner object itself.
*/
public WebJobInner withUrl(String url) {
this.url = url;
return this;
}
Get extra Info URL.
Returns: the extraInfoUrl value
/**
* Get extra Info URL.
*
* @return the extraInfoUrl value
*/
public String extraInfoUrl() {
return this.extraInfoUrl;
}
Set extra Info URL.
Params: - extraInfoUrl – the extraInfoUrl value to set
Returns: the WebJobInner object itself.
/**
* Set extra Info URL.
*
* @param extraInfoUrl the extraInfoUrl value to set
* @return the WebJobInner object itself.
*/
public WebJobInner withExtraInfoUrl(String extraInfoUrl) {
this.extraInfoUrl = extraInfoUrl;
return this;
}
Get job type. Possible values include: 'Continuous', 'Triggered'.
Returns: the webJobType value
/**
* Get job type. Possible values include: 'Continuous', 'Triggered'.
*
* @return the webJobType value
*/
public WebJobType webJobType() {
return this.webJobType;
}
Set job type. Possible values include: 'Continuous', 'Triggered'.
Params: - webJobType – the webJobType value to set
Returns: the WebJobInner object itself.
/**
* Set job type. Possible values include: 'Continuous', 'Triggered'.
*
* @param webJobType the webJobType value to set
* @return the WebJobInner object itself.
*/
public WebJobInner withWebJobType(WebJobType webJobType) {
this.webJobType = webJobType;
return this;
}
Get error information.
Returns: the error value
/**
* Get error information.
*
* @return the error value
*/
public String error() {
return this.error;
}
Set error information.
Params: - error – the error value to set
Returns: the WebJobInner object itself.
/**
* Set error information.
*
* @param error the error value to set
* @return the WebJobInner object itself.
*/
public WebJobInner withError(String error) {
this.error = error;
return this;
}
Get using SDK?.
Returns: the usingSdk value
/**
* Get using SDK?.
*
* @return the usingSdk value
*/
public Boolean usingSdk() {
return this.usingSdk;
}
Set using SDK?.
Params: - usingSdk – the usingSdk value to set
Returns: the WebJobInner object itself.
/**
* Set using SDK?.
*
* @param usingSdk the usingSdk value to set
* @return the WebJobInner object itself.
*/
public WebJobInner withUsingSdk(Boolean usingSdk) {
this.usingSdk = usingSdk;
return this;
}
Get job settings.
Returns: the settings value
/**
* Get job settings.
*
* @return the settings value
*/
public Map<String, Object> settings() {
return this.settings;
}
Set job settings.
Params: - settings – the settings value to set
Returns: the WebJobInner object itself.
/**
* Set job settings.
*
* @param settings the settings value to set
* @return the WebJobInner object itself.
*/
public WebJobInner withSettings(Map<String, Object> settings) {
this.settings = settings;
return this;
}
}