Struct aws_sdk_xray::model::resource_policy::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ResourcePolicy
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn policy_name(self, input: impl Into<String>) -> Self
pub fn policy_name(self, input: impl Into<String>) -> Self
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
sourcepub fn set_policy_name(self, input: Option<String>) -> Self
pub fn set_policy_name(self, input: Option<String>) -> Self
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
sourcepub fn policy_document(self, input: impl Into<String>) -> Self
pub fn policy_document(self, input: impl Into<String>) -> Self
The resource policy document, which can be up to 5kb in size.
sourcepub fn set_policy_document(self, input: Option<String>) -> Self
pub fn set_policy_document(self, input: Option<String>) -> Self
The resource policy document, which can be up to 5kb in size.
sourcepub fn policy_revision_id(self, input: impl Into<String>) -> Self
pub fn policy_revision_id(self, input: impl Into<String>) -> Self
Returns the current policy revision id for this policy name.
sourcepub fn set_policy_revision_id(self, input: Option<String>) -> Self
pub fn set_policy_revision_id(self, input: Option<String>) -> Self
Returns the current policy revision id for this policy name.
sourcepub fn last_updated_time(self, input: DateTime) -> Self
pub fn last_updated_time(self, input: DateTime) -> Self
When the policy was last updated, in Unix time seconds.
sourcepub fn set_last_updated_time(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_time(self, input: Option<DateTime>) -> Self
When the policy was last updated, in Unix time seconds.
sourcepub fn build(self) -> ResourcePolicy
pub fn build(self) -> ResourcePolicy
Consumes the builder and constructs a ResourcePolicy
.