pub struct Builder { /* private fields */ }
Expand description
A builder for ValidatePolicyFinding
.
Implementations§
source§impl Builder
impl Builder
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.
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 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.
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 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.
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 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.
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 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 build(self) -> ValidatePolicyFinding
pub fn build(self) -> ValidatePolicyFinding
Consumes the builder and constructs a ValidatePolicyFinding
.