Struct aws_sdk_cloudsearchdomain::operation::upload_documents::builders::UploadDocumentsInputBuilder
source · #[non_exhaustive]pub struct UploadDocumentsInputBuilder { /* private fields */ }
Expand description
A builder for UploadDocumentsInput
.
Implementations§
source§impl UploadDocumentsInputBuilder
impl UploadDocumentsInputBuilder
sourcepub fn documents(self, input: ByteStream) -> Self
pub fn documents(self, input: ByteStream) -> Self
A batch of documents formatted in JSON or HTML.
This field is required.sourcepub fn set_documents(self, input: Option<ByteStream>) -> Self
pub fn set_documents(self, input: Option<ByteStream>) -> Self
A batch of documents formatted in JSON or HTML.
sourcepub fn get_documents(&self) -> &Option<ByteStream>
pub fn get_documents(&self) -> &Option<ByteStream>
A batch of documents formatted in JSON or HTML.
sourcepub fn content_type(self, input: ContentType) -> Self
pub fn content_type(self, input: ContentType) -> Self
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
- application/json
- application/xml
sourcepub fn set_content_type(self, input: Option<ContentType>) -> Self
pub fn set_content_type(self, input: Option<ContentType>) -> Self
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
- application/json
- application/xml
sourcepub fn get_content_type(&self) -> &Option<ContentType>
pub fn get_content_type(&self) -> &Option<ContentType>
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
- application/json
- application/xml
sourcepub fn build(self) -> Result<UploadDocumentsInput, BuildError>
pub fn build(self) -> Result<UploadDocumentsInput, BuildError>
Consumes the builder and constructs a UploadDocumentsInput
.
source§impl UploadDocumentsInputBuilder
impl UploadDocumentsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UploadDocumentsOutput, SdkError<UploadDocumentsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UploadDocumentsOutput, SdkError<UploadDocumentsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Debug for UploadDocumentsInputBuilder
impl Debug for UploadDocumentsInputBuilder
source§impl Default for UploadDocumentsInputBuilder
impl Default for UploadDocumentsInputBuilder
source§fn default() -> UploadDocumentsInputBuilder
fn default() -> UploadDocumentsInputBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for UploadDocumentsInputBuilder
impl !RefUnwindSafe for UploadDocumentsInputBuilder
impl Send for UploadDocumentsInputBuilder
impl Sync for UploadDocumentsInputBuilder
impl Unpin for UploadDocumentsInputBuilder
impl !UnwindSafe for UploadDocumentsInputBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.