#[non_exhaustive]pub struct AccessPreviewSummaryBuilder { /* private fields */ }Expand description
A builder for AccessPreviewSummary.
Implementations§
source§impl AccessPreviewSummaryBuilder
impl AccessPreviewSummaryBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The unique ID for the access preview.
This field is required.sourcepub fn analyzer_arn(self, input: impl Into<String>) -> Self
pub fn analyzer_arn(self, input: impl Into<String>) -> Self
The ARN of the analyzer used to generate the access preview.
This field is required.sourcepub fn set_analyzer_arn(self, input: Option<String>) -> Self
pub fn set_analyzer_arn(self, input: Option<String>) -> Self
The ARN of the analyzer used to generate the access preview.
sourcepub fn get_analyzer_arn(&self) -> &Option<String>
pub fn get_analyzer_arn(&self) -> &Option<String>
The ARN of the analyzer used to generate the access preview.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time at which the access preview was created.
This field is required.sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time at which the access preview was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time at which the access preview was created.
sourcepub fn status(self, input: AccessPreviewStatus) -> Self
pub fn status(self, input: AccessPreviewStatus) -> Self
The status of the access preview.
-
Creating- The access preview creation is in progress. -
Completed- The access preview is complete and previews the findings for external access to the resource. -
Failed- The access preview creation has failed.
sourcepub fn set_status(self, input: Option<AccessPreviewStatus>) -> Self
pub fn set_status(self, input: Option<AccessPreviewStatus>) -> Self
The status of the access preview.
-
Creating- The access preview creation is in progress. -
Completed- The access preview is complete and previews the findings for external access to the resource. -
Failed- The access preview creation has failed.
sourcepub fn get_status(&self) -> &Option<AccessPreviewStatus>
pub fn get_status(&self) -> &Option<AccessPreviewStatus>
The status of the access preview.
-
Creating- The access preview creation is in progress. -
Completed- The access preview is complete and previews the findings for external access to the resource. -
Failed- The access preview creation has failed.
sourcepub fn status_reason(self, input: AccessPreviewStatusReason) -> Self
pub fn status_reason(self, input: AccessPreviewStatusReason) -> Self
Provides more details about the current status of the access preview. For example, if the creation of the access preview fails, a Failed status is returned. This failure can be due to an internal issue with the analysis or due to an invalid proposed resource configuration.
sourcepub fn set_status_reason(self, input: Option<AccessPreviewStatusReason>) -> Self
pub fn set_status_reason(self, input: Option<AccessPreviewStatusReason>) -> Self
Provides more details about the current status of the access preview. For example, if the creation of the access preview fails, a Failed status is returned. This failure can be due to an internal issue with the analysis or due to an invalid proposed resource configuration.
sourcepub fn get_status_reason(&self) -> &Option<AccessPreviewStatusReason>
pub fn get_status_reason(&self) -> &Option<AccessPreviewStatusReason>
Provides more details about the current status of the access preview. For example, if the creation of the access preview fails, a Failed status is returned. This failure can be due to an internal issue with the analysis or due to an invalid proposed resource configuration.
sourcepub fn build(self) -> Result<AccessPreviewSummary, BuildError>
pub fn build(self) -> Result<AccessPreviewSummary, BuildError>
Consumes the builder and constructs a AccessPreviewSummary.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AccessPreviewSummaryBuilder
impl Clone for AccessPreviewSummaryBuilder
source§fn clone(&self) -> AccessPreviewSummaryBuilder
fn clone(&self) -> AccessPreviewSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AccessPreviewSummaryBuilder
impl Debug for AccessPreviewSummaryBuilder
source§impl Default for AccessPreviewSummaryBuilder
impl Default for AccessPreviewSummaryBuilder
source§fn default() -> AccessPreviewSummaryBuilder
fn default() -> AccessPreviewSummaryBuilder
source§impl PartialEq for AccessPreviewSummaryBuilder
impl PartialEq for AccessPreviewSummaryBuilder
source§fn eq(&self, other: &AccessPreviewSummaryBuilder) -> bool
fn eq(&self, other: &AccessPreviewSummaryBuilder) -> bool
self and other values to be equal, and is used
by ==.