Struct aws_sdk_verifiedpermissions::operation::update_policy::builders::UpdatePolicyOutputBuilder
source · #[non_exhaustive]pub struct UpdatePolicyOutputBuilder { /* private fields */ }Expand description
A builder for UpdatePolicyOutput.
Implementations§
source§impl UpdatePolicyOutputBuilder
impl UpdatePolicyOutputBuilder
sourcepub fn policy_store_id(self, input: impl Into<String>) -> Self
pub fn policy_store_id(self, input: impl Into<String>) -> Self
The ID of the policy store that contains the policy that was updated.
This field is required.sourcepub fn set_policy_store_id(self, input: Option<String>) -> Self
pub fn set_policy_store_id(self, input: Option<String>) -> Self
The ID of the policy store that contains the policy that was updated.
sourcepub fn get_policy_store_id(&self) -> &Option<String>
pub fn get_policy_store_id(&self) -> &Option<String>
The ID of the policy store that contains the policy that was updated.
sourcepub fn policy_id(self, input: impl Into<String>) -> Self
pub fn policy_id(self, input: impl Into<String>) -> Self
The ID of the policy that was updated.
This field is required.sourcepub fn set_policy_id(self, input: Option<String>) -> Self
pub fn set_policy_id(self, input: Option<String>) -> Self
The ID of the policy that was updated.
sourcepub fn get_policy_id(&self) -> &Option<String>
pub fn get_policy_id(&self) -> &Option<String>
The ID of the policy that was updated.
sourcepub fn policy_type(self, input: PolicyType) -> Self
pub fn policy_type(self, input: PolicyType) -> Self
The type of the policy that was updated.
This field is required.sourcepub fn set_policy_type(self, input: Option<PolicyType>) -> Self
pub fn set_policy_type(self, input: Option<PolicyType>) -> Self
The type of the policy that was updated.
sourcepub fn get_policy_type(&self) -> &Option<PolicyType>
pub fn get_policy_type(&self) -> &Option<PolicyType>
The type of the policy that was updated.
sourcepub fn principal(self, input: EntityIdentifier) -> Self
pub fn principal(self, input: EntityIdentifier) -> Self
The principal specified in the policy's scope. This element isn't included in the response when Principal isn't present in the policy content.
sourcepub fn set_principal(self, input: Option<EntityIdentifier>) -> Self
pub fn set_principal(self, input: Option<EntityIdentifier>) -> Self
The principal specified in the policy's scope. This element isn't included in the response when Principal isn't present in the policy content.
sourcepub fn get_principal(&self) -> &Option<EntityIdentifier>
pub fn get_principal(&self) -> &Option<EntityIdentifier>
The principal specified in the policy's scope. This element isn't included in the response when Principal isn't present in the policy content.
sourcepub fn resource(self, input: EntityIdentifier) -> Self
pub fn resource(self, input: EntityIdentifier) -> Self
The resource specified in the policy's scope. This element isn't included in the response when Resource isn't present in the policy content.
sourcepub fn set_resource(self, input: Option<EntityIdentifier>) -> Self
pub fn set_resource(self, input: Option<EntityIdentifier>) -> Self
The resource specified in the policy's scope. This element isn't included in the response when Resource isn't present in the policy content.
sourcepub fn get_resource(&self) -> &Option<EntityIdentifier>
pub fn get_resource(&self) -> &Option<EntityIdentifier>
The resource specified in the policy's scope. This element isn't included in the response when Resource isn't present in the policy content.
sourcepub fn created_date(self, input: DateTime) -> Self
pub fn created_date(self, input: DateTime) -> Self
The date and time that the policy was originally created.
This field is required.sourcepub fn set_created_date(self, input: Option<DateTime>) -> Self
pub fn set_created_date(self, input: Option<DateTime>) -> Self
The date and time that the policy was originally created.
sourcepub fn get_created_date(&self) -> &Option<DateTime>
pub fn get_created_date(&self) -> &Option<DateTime>
The date and time that the policy was originally created.
sourcepub fn last_updated_date(self, input: DateTime) -> Self
pub fn last_updated_date(self, input: DateTime) -> Self
The date and time that the policy was most recently updated.
This field is required.sourcepub fn set_last_updated_date(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_date(self, input: Option<DateTime>) -> Self
The date and time that the policy was most recently updated.
sourcepub fn get_last_updated_date(&self) -> &Option<DateTime>
pub fn get_last_updated_date(&self) -> &Option<DateTime>
The date and time that the policy was most recently updated.
sourcepub fn build(self) -> Result<UpdatePolicyOutput, BuildError>
pub fn build(self) -> Result<UpdatePolicyOutput, BuildError>
Consumes the builder and constructs a UpdatePolicyOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for UpdatePolicyOutputBuilder
impl Clone for UpdatePolicyOutputBuilder
source§fn clone(&self) -> UpdatePolicyOutputBuilder
fn clone(&self) -> UpdatePolicyOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdatePolicyOutputBuilder
impl Debug for UpdatePolicyOutputBuilder
source§impl Default for UpdatePolicyOutputBuilder
impl Default for UpdatePolicyOutputBuilder
source§fn default() -> UpdatePolicyOutputBuilder
fn default() -> UpdatePolicyOutputBuilder
source§impl PartialEq for UpdatePolicyOutputBuilder
impl PartialEq for UpdatePolicyOutputBuilder
source§fn eq(&self, other: &UpdatePolicyOutputBuilder) -> bool
fn eq(&self, other: &UpdatePolicyOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.