Class HttpReadSettings
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.StoreReadSettings
-
- com.azure.resourcemanager.datafactory.models.HttpReadSettings
-
public final class HttpReadSettings extends StoreReadSettings
Sftp read settings.
-
-
Constructor Summary
Constructors Constructor Description HttpReadSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
additionalHeaders()
Get the additionalHeaders property: The additional HTTP headers in the request to the RESTful API.Boolean
enablePartitionDiscovery()
Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery.Object
partitionRootPath()
Get the partitionRootPath property: Specify the root path where partition discovery starts from.Object
requestBody()
Get the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST.Object
requestMethod()
Get the requestMethod property: The HTTP method used to call the RESTful API.Object
requestTimeout()
Get the requestTimeout property: Specifies the timeout for a HTTP client to get HTTP response from HTTP server.void
validate()
Validates the instance.HttpReadSettings
withAdditionalHeaders(Object additionalHeaders)
Set the additionalHeaders property: The additional HTTP headers in the request to the RESTful API.HttpReadSettings
withDisableMetricsCollection(Object disableMetricsCollection)
Set the disableMetricsCollection property: If true, disable data store metrics collection.HttpReadSettings
withEnablePartitionDiscovery(Boolean enablePartitionDiscovery)
Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery.HttpReadSettings
withMaxConcurrentConnections(Object maxConcurrentConnections)
Set the maxConcurrentConnections property: The maximum concurrent connection count for the source data store.HttpReadSettings
withPartitionRootPath(Object partitionRootPath)
Set the partitionRootPath property: Specify the root path where partition discovery starts from.HttpReadSettings
withRequestBody(Object requestBody)
Set the requestBody property: The HTTP request body to the RESTful API if requestMethod is POST.HttpReadSettings
withRequestMethod(Object requestMethod)
Set the requestMethod property: The HTTP method used to call the RESTful API.HttpReadSettings
withRequestTimeout(Object requestTimeout)
Set the requestTimeout property: Specifies the timeout for a HTTP client to get HTTP response from HTTP server.-
Methods inherited from class com.azure.resourcemanager.datafactory.models.StoreReadSettings
additionalProperties, disableMetricsCollection, maxConcurrentConnections, withAdditionalProperties
-
-
-
-
Method Detail
-
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:
- the requestMethod value.
-
withRequestMethod
public HttpReadSettings 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:
requestMethod
- the requestMethod value to set.- Returns:
- the HttpReadSettings object itself.
-
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:
- the requestBody value.
-
withRequestBody
public HttpReadSettings 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:
requestBody
- the requestBody value to set.- Returns:
- the HttpReadSettings object itself.
-
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:
- the additionalHeaders value.
-
withAdditionalHeaders
public HttpReadSettings 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:
additionalHeaders
- the additionalHeaders value to set.- Returns:
- the HttpReadSettings object itself.
-
requestTimeout
public Object requestTimeout()
Get the requestTimeout property: Specifies the timeout for a HTTP client to get HTTP response from HTTP server.- Returns:
- the requestTimeout value.
-
withRequestTimeout
public HttpReadSettings withRequestTimeout(Object requestTimeout)
Set the requestTimeout property: Specifies the timeout for a HTTP client to get HTTP response from HTTP server.- Parameters:
requestTimeout
- the requestTimeout value to set.- Returns:
- the HttpReadSettings object itself.
-
enablePartitionDiscovery
public Boolean enablePartitionDiscovery()
Get the enablePartitionDiscovery property: Indicates whether to enable partition discovery.- Returns:
- the enablePartitionDiscovery value.
-
withEnablePartitionDiscovery
public HttpReadSettings withEnablePartitionDiscovery(Boolean enablePartitionDiscovery)
Set the enablePartitionDiscovery property: Indicates whether to enable partition discovery.- Parameters:
enablePartitionDiscovery
- the enablePartitionDiscovery value to set.- Returns:
- the HttpReadSettings object itself.
-
partitionRootPath
public Object partitionRootPath()
Get the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string).- Returns:
- the partitionRootPath value.
-
withPartitionRootPath
public HttpReadSettings withPartitionRootPath(Object partitionRootPath)
Set the partitionRootPath property: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string).- Parameters:
partitionRootPath
- the partitionRootPath value to set.- Returns:
- the HttpReadSettings object itself.
-
withMaxConcurrentConnections
public HttpReadSettings 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:
withMaxConcurrentConnections
in classStoreReadSettings
- Parameters:
maxConcurrentConnections
- the maxConcurrentConnections value to set.- Returns:
- the StoreReadSettings object itself.
-
withDisableMetricsCollection
public HttpReadSettings 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:
withDisableMetricsCollection
in classStoreReadSettings
- Parameters:
disableMetricsCollection
- the disableMetricsCollection value to set.- Returns:
- the StoreReadSettings object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classStoreReadSettings
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-