#[non_exhaustive]pub struct ValidatePolicyFindingBuilder { /* private fields */ }Expand description
A builder for ValidatePolicyFinding.
Implementations§
source§impl ValidatePolicyFindingBuilder
impl ValidatePolicyFindingBuilder
sourcepub fn finding_details(self, input: impl Into<String>) -> Self
pub fn finding_details(self, input: impl Into<String>) -> Self
A localized message that explains the finding and provides guidance on how to address it.
This field is required.sourcepub fn set_finding_details(self, input: Option<String>) -> Self
pub fn set_finding_details(self, input: Option<String>) -> Self
A localized message that explains the finding and provides guidance on how to address it.
sourcepub fn get_finding_details(&self) -> &Option<String>
pub fn get_finding_details(&self) -> &Option<String>
A localized message that explains the finding and provides guidance on how to address it.
sourcepub fn finding_type(self, input: ValidatePolicyFindingType) -> Self
pub fn finding_type(self, input: ValidatePolicyFindingType) -> Self
The impact of the finding.
Security warnings report when the policy allows access that we consider overly permissive.
Errors report when a part of the policy is not functional.
Warnings report non-security issues when a policy does not conform to policy writing best practices.
Suggestions recommend stylistic improvements in the policy that do not impact access.
This field is required.sourcepub fn set_finding_type(self, input: Option<ValidatePolicyFindingType>) -> Self
pub fn set_finding_type(self, input: Option<ValidatePolicyFindingType>) -> Self
The impact of the finding.
Security warnings report when the policy allows access that we consider overly permissive.
Errors report when a part of the policy is not functional.
Warnings report non-security issues when a policy does not conform to policy writing best practices.
Suggestions recommend stylistic improvements in the policy that do not impact access.
sourcepub fn get_finding_type(&self) -> &Option<ValidatePolicyFindingType>
pub fn get_finding_type(&self) -> &Option<ValidatePolicyFindingType>
The impact of the finding.
Security warnings report when the policy allows access that we consider overly permissive.
Errors report when a part of the policy is not functional.
Warnings report non-security issues when a policy does not conform to policy writing best practices.
Suggestions recommend stylistic improvements in the policy that do not impact access.
sourcepub fn issue_code(self, input: impl Into<String>) -> Self
pub fn issue_code(self, input: impl Into<String>) -> Self
The issue code provides an identifier of the issue associated with this finding.
This field is required.sourcepub fn set_issue_code(self, input: Option<String>) -> Self
pub fn set_issue_code(self, input: Option<String>) -> Self
The issue code provides an identifier of the issue associated with this finding.
sourcepub fn get_issue_code(&self) -> &Option<String>
pub fn get_issue_code(&self) -> &Option<String>
The issue code provides an identifier of the issue associated with this finding.
sourcepub fn learn_more_link(self, input: impl Into<String>) -> Self
pub fn learn_more_link(self, input: impl Into<String>) -> Self
A link to additional documentation about the type of finding.
This field is required.sourcepub fn set_learn_more_link(self, input: Option<String>) -> Self
pub fn set_learn_more_link(self, input: Option<String>) -> Self
A link to additional documentation about the type of finding.
sourcepub fn get_learn_more_link(&self) -> &Option<String>
pub fn get_learn_more_link(&self) -> &Option<String>
A link to additional documentation about the type of finding.
sourcepub fn locations(self, input: Location) -> Self
pub fn locations(self, input: Location) -> Self
Appends an item to locations.
To override the contents of this collection use set_locations.
The list of locations in the policy document that are related to the finding. The issue code provides a summary of an issue identified by the finding.
sourcepub fn set_locations(self, input: Option<Vec<Location>>) -> Self
pub fn set_locations(self, input: Option<Vec<Location>>) -> Self
The list of locations in the policy document that are related to the finding. The issue code provides a summary of an issue identified by the finding.
sourcepub fn get_locations(&self) -> &Option<Vec<Location>>
pub fn get_locations(&self) -> &Option<Vec<Location>>
The list of locations in the policy document that are related to the finding. The issue code provides a summary of an issue identified by the finding.
sourcepub fn build(self) -> Result<ValidatePolicyFinding, BuildError>
pub fn build(self) -> Result<ValidatePolicyFinding, BuildError>
Consumes the builder and constructs a ValidatePolicyFinding.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ValidatePolicyFindingBuilder
impl Clone for ValidatePolicyFindingBuilder
source§fn clone(&self) -> ValidatePolicyFindingBuilder
fn clone(&self) -> ValidatePolicyFindingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ValidatePolicyFindingBuilder
impl Debug for ValidatePolicyFindingBuilder
source§impl Default for ValidatePolicyFindingBuilder
impl Default for ValidatePolicyFindingBuilder
source§fn default() -> ValidatePolicyFindingBuilder
fn default() -> ValidatePolicyFindingBuilder
source§impl PartialEq for ValidatePolicyFindingBuilder
impl PartialEq for ValidatePolicyFindingBuilder
source§fn eq(&self, other: &ValidatePolicyFindingBuilder) -> bool
fn eq(&self, other: &ValidatePolicyFindingBuilder) -> bool
self and other values to be equal, and is used
by ==.