RestSource Class
- java.
lang. Object - com.
azure. resourcemanager. datafactory. models. CopySource - com.
azure. resourcemanager. datafactory. models. RestSource
- com.
- com.
public final class RestSource
extends CopySource
A copy activity Rest service source.
Constructor Summary
| Constructor | Description |
|---|---|
| RestSource() |
Creates an instance of Rest |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Object |
additionalColumns()
Get the additional |
| Object |
additionalHeaders()
Get the additional |
|
static
Rest |
fromJson(JsonReader jsonReader)
Reads an instance of Rest |
| Object |
httpRequestTimeout()
Get the http |
| Object |
paginationRules()
Get the pagination |
| Object |
requestBody()
Get the request |
| Object |
requestInterval()
Get the request |
| Object |
requestMethod()
Get the request |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Copy source type. |
| void |
validate()
Validates the instance. |
|
Rest |
withAdditionalColumns(Object additionalColumns)
Set the additional |
|
Rest |
withAdditionalHeaders(Object additionalHeaders)
Set the additional |
|
Rest |
withDisableMetricsCollection(Object disableMetricsCollection)
Set the disable |
|
Rest |
withHttpRequestTimeout(Object httpRequestTimeout)
Set the http |
|
Rest |
withMaxConcurrentConnections(Object maxConcurrentConnections)
Set the max |
|
Rest |
withPaginationRules(Object paginationRules)
Set the pagination |
|
Rest |
withRequestBody(Object requestBody)
Set the request |
|
Rest |
withRequestInterval(Object requestInterval)
Set the request |
|
Rest |
withRequestMethod(Object requestMethod)
Set the request |
|
Rest |
withSourceRetryCount(Object sourceRetryCount)
Set the source |
|
Rest |
withSourceRetryWait(Object sourceRetryWait)
Set the source |
Methods inherited from CopySource
Methods inherited from java.lang.Object
Constructor Details
RestSource
public RestSource()
Creates an instance of RestSource class.
Method Details
additionalColumns
public Object additionalColumns()
Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: key value pairs (value should be string type).
Returns:
additionalHeaders
public Object additionalHeaders()
Get the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string).
Returns:
fromJson
public static RestSource fromJson(JsonReader jsonReader)
Reads an instance of RestSource from the JsonReader.
Parameters:
Returns:
Throws:
httpRequestTimeout
public Object httpRequestTimeout()
Get the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Returns:
paginationRules
public Object paginationRules()
Get the paginationRules property: The pagination rules to compose next page requests. Type: string (or Expression with resultType string).
Returns:
requestBody
public Object requestBody()
Get the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string).
Returns:
requestInterval
public Object requestInterval()
Get the requestInterval property: The time to await before sending next page request.
Returns:
requestMethod
public Object requestMethod()
Get the requestMethod property: The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string).
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RestSource.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Copy source type.
Overrides:
RestSource.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
RestSource.validate()withAdditionalColumns
public RestSource withAdditionalColumns(Object additionalColumns)
Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: key value pairs (value should be string type).
Parameters:
Returns:
withAdditionalHeaders
public RestSource withAdditionalHeaders(Object additionalHeaders)
Set the additionalHeaders property: The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string).
Parameters:
Returns:
withDisableMetricsCollection
public RestSource withDisableMetricsCollection(Object disableMetricsCollection)
Set the disableMetricsCollection property: If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
Overrides:
RestSource.withDisableMetricsCollection(Object disableMetricsCollection)Parameters:
withHttpRequestTimeout
public RestSource withHttpRequestTimeout(Object httpRequestTimeout)
Set the httpRequestTimeout property: The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Parameters:
Returns:
withMaxConcurrentConnections
public RestSource withMaxConcurrentConnections(Object maxConcurrentConnections)
Set the maxConcurrentConnections property: The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer).
Overrides:
RestSource.withMaxConcurrentConnections(Object maxConcurrentConnections)Parameters:
withPaginationRules
public RestSource withPaginationRules(Object paginationRules)
Set the paginationRules property: The pagination rules to compose next page requests. Type: string (or Expression with resultType string).
Parameters:
Returns:
withRequestBody
public RestSource withRequestBody(Object requestBody)
Set the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string).
Parameters:
Returns:
withRequestInterval
public RestSource withRequestInterval(Object requestInterval)
Set the requestInterval property: The time to await before sending next page request.
Parameters:
Returns:
withRequestMethod
public RestSource withRequestMethod(Object requestMethod)
Set the requestMethod property: The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string).
Parameters:
Returns:
withSourceRetryCount
public RestSource withSourceRetryCount(Object sourceRetryCount)
Set the sourceRetryCount property: Source retry count. Type: integer (or Expression with resultType integer).
Overrides:
RestSource.withSourceRetryCount(Object sourceRetryCount)Parameters:
withSourceRetryWait
public RestSource withSourceRetryWait(Object sourceRetryWait)
Set the sourceRetryWait property: Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Overrides:
RestSource.withSourceRetryWait(Object sourceRetryWait)Parameters: