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 and add 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 and add 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 and add 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.
This field is required.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.
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.
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 ==
.