Struct aws_sdk_codegurusecurity::operation::create_upload_url::builders::CreateUploadUrlOutputBuilder
source · #[non_exhaustive]pub struct CreateUploadUrlOutputBuilder { /* private fields */ }
Expand description
A builder for CreateUploadUrlOutput
.
Implementations§
source§impl CreateUploadUrlOutputBuilder
impl CreateUploadUrlOutputBuilder
sourcepub fn s3_url(self, input: impl Into<String>) -> Self
pub fn s3_url(self, input: impl Into<String>) -> Self
A pre-signed S3 URL. You can upload the code file you want to scan with the required requestHeaders
using any HTTP client.
sourcepub fn set_s3_url(self, input: Option<String>) -> Self
pub fn set_s3_url(self, input: Option<String>) -> Self
A pre-signed S3 URL. You can upload the code file you want to scan with the required requestHeaders
using any HTTP client.
sourcepub fn get_s3_url(&self) -> &Option<String>
pub fn get_s3_url(&self) -> &Option<String>
A pre-signed S3 URL. You can upload the code file you want to scan with the required requestHeaders
using any HTTP client.
sourcepub fn request_headers(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn request_headers(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to request_headers
.
To override the contents of this collection use set_request_headers
.
A set of key-value pairs that contain the required headers when uploading your resource.
sourcepub fn set_request_headers(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_request_headers(self, input: Option<HashMap<String, String>>) -> Self
A set of key-value pairs that contain the required headers when uploading your resource.
sourcepub fn get_request_headers(&self) -> &Option<HashMap<String, String>>
pub fn get_request_headers(&self) -> &Option<HashMap<String, String>>
A set of key-value pairs that contain the required headers when uploading your resource.
sourcepub fn code_artifact_id(self, input: impl Into<String>) -> Self
pub fn code_artifact_id(self, input: impl Into<String>) -> Self
The identifier for the uploaded code resource. Pass this to CreateScan
to use the uploaded resources.
sourcepub fn set_code_artifact_id(self, input: Option<String>) -> Self
pub fn set_code_artifact_id(self, input: Option<String>) -> Self
The identifier for the uploaded code resource. Pass this to CreateScan
to use the uploaded resources.
sourcepub fn get_code_artifact_id(&self) -> &Option<String>
pub fn get_code_artifact_id(&self) -> &Option<String>
The identifier for the uploaded code resource. Pass this to CreateScan
to use the uploaded resources.
sourcepub fn build(self) -> Result<CreateUploadUrlOutput, BuildError>
pub fn build(self) -> Result<CreateUploadUrlOutput, BuildError>
Consumes the builder and constructs a CreateUploadUrlOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreateUploadUrlOutputBuilder
impl Clone for CreateUploadUrlOutputBuilder
source§fn clone(&self) -> CreateUploadUrlOutputBuilder
fn clone(&self) -> CreateUploadUrlOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateUploadUrlOutputBuilder
impl Debug for CreateUploadUrlOutputBuilder
source§impl Default for CreateUploadUrlOutputBuilder
impl Default for CreateUploadUrlOutputBuilder
source§fn default() -> CreateUploadUrlOutputBuilder
fn default() -> CreateUploadUrlOutputBuilder
source§impl PartialEq for CreateUploadUrlOutputBuilder
impl PartialEq for CreateUploadUrlOutputBuilder
source§fn eq(&self, other: &CreateUploadUrlOutputBuilder) -> bool
fn eq(&self, other: &CreateUploadUrlOutputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateUploadUrlOutputBuilder
Auto Trait Implementations§
impl Freeze for CreateUploadUrlOutputBuilder
impl RefUnwindSafe for CreateUploadUrlOutputBuilder
impl Send for CreateUploadUrlOutputBuilder
impl Sync for CreateUploadUrlOutputBuilder
impl Unpin for CreateUploadUrlOutputBuilder
impl UnwindSafe for CreateUploadUrlOutputBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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