#[non_exhaustive]pub struct SourceConfigurationBuilder { /* private fields */ }Expand description
A builder for SourceConfiguration.
Implementations§
Source§impl SourceConfigurationBuilder
impl SourceConfigurationBuilder
Sourcepub fn request_method(self, input: HttpMethod) -> Self
pub fn request_method(self, input: HttpMethod) -> Self
The HTTP method to use for requests to this endpoint, such as GET, POST.
Sourcepub fn set_request_method(self, input: Option<HttpMethod>) -> Self
pub fn set_request_method(self, input: Option<HttpMethod>) -> Self
The HTTP method to use for requests to this endpoint, such as GET, POST.
Sourcepub fn get_request_method(&self) -> &Option<HttpMethod>
pub fn get_request_method(&self) -> &Option<HttpMethod>
The HTTP method to use for requests to this endpoint, such as GET, POST.
Sourcepub fn request_path(self, input: impl Into<String>) -> Self
pub fn request_path(self, input: impl Into<String>) -> Self
The URL path for the REST endpoint, which may include parameter placeholders that will be replaced with actual values during requests.
Sourcepub fn set_request_path(self, input: Option<String>) -> Self
pub fn set_request_path(self, input: Option<String>) -> Self
The URL path for the REST endpoint, which may include parameter placeholders that will be replaced with actual values during requests.
Sourcepub fn get_request_path(&self) -> &Option<String>
pub fn get_request_path(&self) -> &Option<String>
The URL path for the REST endpoint, which may include parameter placeholders that will be replaced with actual values during requests.
Sourcepub fn request_parameters(self, input: ConnectorProperty) -> Self
pub fn request_parameters(self, input: ConnectorProperty) -> Self
Appends an item to request_parameters.
To override the contents of this collection use set_request_parameters.
Configuration for request parameters that should be included in API calls, such as query parameters, headers, or body content.
Sourcepub fn set_request_parameters(
self,
input: Option<Vec<ConnectorProperty>>,
) -> Self
pub fn set_request_parameters( self, input: Option<Vec<ConnectorProperty>>, ) -> Self
Configuration for request parameters that should be included in API calls, such as query parameters, headers, or body content.
Sourcepub fn get_request_parameters(&self) -> &Option<Vec<ConnectorProperty>>
pub fn get_request_parameters(&self) -> &Option<Vec<ConnectorProperty>>
Configuration for request parameters that should be included in API calls, such as query parameters, headers, or body content.
Sourcepub fn response_configuration(self, input: ResponseConfiguration) -> Self
pub fn response_configuration(self, input: ResponseConfiguration) -> Self
Configuration that defines how to parse and extract data from API responses, including success and error handling.
Sourcepub fn set_response_configuration(
self,
input: Option<ResponseConfiguration>,
) -> Self
pub fn set_response_configuration( self, input: Option<ResponseConfiguration>, ) -> Self
Configuration that defines how to parse and extract data from API responses, including success and error handling.
Sourcepub fn get_response_configuration(&self) -> &Option<ResponseConfiguration>
pub fn get_response_configuration(&self) -> &Option<ResponseConfiguration>
Configuration that defines how to parse and extract data from API responses, including success and error handling.
Sourcepub fn pagination_configuration(self, input: PaginationConfiguration) -> Self
pub fn pagination_configuration(self, input: PaginationConfiguration) -> Self
Configuration for handling paginated responses from the REST API, supporting both cursor-based and offset-based pagination strategies.
Sourcepub fn set_pagination_configuration(
self,
input: Option<PaginationConfiguration>,
) -> Self
pub fn set_pagination_configuration( self, input: Option<PaginationConfiguration>, ) -> Self
Configuration for handling paginated responses from the REST API, supporting both cursor-based and offset-based pagination strategies.
Sourcepub fn get_pagination_configuration(&self) -> &Option<PaginationConfiguration>
pub fn get_pagination_configuration(&self) -> &Option<PaginationConfiguration>
Configuration for handling paginated responses from the REST API, supporting both cursor-based and offset-based pagination strategies.
Sourcepub fn build(self) -> SourceConfiguration
pub fn build(self) -> SourceConfiguration
Consumes the builder and constructs a SourceConfiguration.
Trait Implementations§
Source§impl Clone for SourceConfigurationBuilder
impl Clone for SourceConfigurationBuilder
Source§fn clone(&self) -> SourceConfigurationBuilder
fn clone(&self) -> SourceConfigurationBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SourceConfigurationBuilder
impl Debug for SourceConfigurationBuilder
Source§impl Default for SourceConfigurationBuilder
impl Default for SourceConfigurationBuilder
Source§fn default() -> SourceConfigurationBuilder
fn default() -> SourceConfigurationBuilder
Source§impl PartialEq for SourceConfigurationBuilder
impl PartialEq for SourceConfigurationBuilder
Source§fn eq(&self, other: &SourceConfigurationBuilder) -> bool
fn eq(&self, other: &SourceConfigurationBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceConfigurationBuilder
Auto Trait Implementations§
impl Freeze for SourceConfigurationBuilder
impl RefUnwindSafe for SourceConfigurationBuilder
impl Send for SourceConfigurationBuilder
impl Sync for SourceConfigurationBuilder
impl Unpin for SourceConfigurationBuilder
impl UnsafeUnpin for SourceConfigurationBuilder
impl UnwindSafe for SourceConfigurationBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more