Struct aws_sdk_codeartifact::model::resource_policy::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ResourcePolicy
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The ARN of the resource associated with the resource policy
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The ARN of the resource associated with the resource policy
sourcepub fn revision(self, input: impl Into<String>) -> Self
pub fn revision(self, input: impl Into<String>) -> Self
The current revision of the resource policy.
sourcepub fn set_revision(self, input: Option<String>) -> Self
pub fn set_revision(self, input: Option<String>) -> Self
The current revision of the resource policy.
sourcepub fn document(self, input: impl Into<String>) -> Self
pub fn document(self, input: impl Into<String>) -> Self
The resource policy formatted in JSON.
sourcepub fn set_document(self, input: Option<String>) -> Self
pub fn set_document(self, input: Option<String>) -> Self
The resource policy formatted in JSON.
sourcepub fn build(self) -> ResourcePolicy
pub fn build(self) -> ResourcePolicy
Consumes the builder and constructs a ResourcePolicy
.