Struct aws_sdk_verifiedpermissions::operation::create_policy::builders::CreatePolicyOutputBuilder
source · #[non_exhaustive]pub struct CreatePolicyOutputBuilder { /* private fields */ }Expand description
A builder for CreatePolicyOutput.
Implementations§
source§impl CreatePolicyOutputBuilder
impl CreatePolicyOutputBuilder
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 new policy.
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 new policy.
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 new policy.
sourcepub fn policy_id(self, input: impl Into<String>) -> Self
pub fn policy_id(self, input: impl Into<String>) -> Self
The unique ID of the new policy.
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 unique ID of the new policy.
sourcepub fn get_policy_id(&self) -> &Option<String>
pub fn get_policy_id(&self) -> &Option<String>
The unique ID of the new policy.
sourcepub fn policy_type(self, input: PolicyType) -> Self
pub fn policy_type(self, input: PolicyType) -> Self
The policy type of the new policy.
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 policy type of the new policy.
sourcepub fn get_policy_type(&self) -> &Option<PolicyType>
pub fn get_policy_type(&self) -> &Option<PolicyType>
The policy type of the new policy.
sourcepub fn principal(self, input: EntityIdentifier) -> Self
pub fn principal(self, input: EntityIdentifier) -> Self
The principal specified in the new policy's scope. This response element isn't present when principal isn't specified 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 new policy's scope. This response element isn't present when principal isn't specified in the policy content.
sourcepub fn get_principal(&self) -> &Option<EntityIdentifier>
pub fn get_principal(&self) -> &Option<EntityIdentifier>
The principal specified in the new policy's scope. This response element isn't present when principal isn't specified in the policy content.
sourcepub fn resource(self, input: EntityIdentifier) -> Self
pub fn resource(self, input: EntityIdentifier) -> Self
The resource specified in the new policy's scope. This response element isn't present when the resource isn't specified 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 new policy's scope. This response element isn't present when the resource isn't specified in the policy content.
sourcepub fn get_resource(&self) -> &Option<EntityIdentifier>
pub fn get_resource(&self) -> &Option<EntityIdentifier>
The resource specified in the new policy's scope. This response element isn't present when the resource isn't specified in the policy content.
sourcepub fn created_date(self, input: DateTime) -> Self
pub fn created_date(self, input: DateTime) -> Self
The date and time 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 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 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 the policy was last 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 the policy was last updated.
sourcepub fn get_last_updated_date(&self) -> &Option<DateTime>
pub fn get_last_updated_date(&self) -> &Option<DateTime>
The date and time the policy was last updated.
sourcepub fn build(self) -> Result<CreatePolicyOutput, BuildError>
pub fn build(self) -> Result<CreatePolicyOutput, BuildError>
Consumes the builder and constructs a CreatePolicyOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreatePolicyOutputBuilder
impl Clone for CreatePolicyOutputBuilder
source§fn clone(&self) -> CreatePolicyOutputBuilder
fn clone(&self) -> CreatePolicyOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreatePolicyOutputBuilder
impl Debug for CreatePolicyOutputBuilder
source§impl Default for CreatePolicyOutputBuilder
impl Default for CreatePolicyOutputBuilder
source§fn default() -> CreatePolicyOutputBuilder
fn default() -> CreatePolicyOutputBuilder
source§impl PartialEq for CreatePolicyOutputBuilder
impl PartialEq for CreatePolicyOutputBuilder
source§fn eq(&self, other: &CreatePolicyOutputBuilder) -> bool
fn eq(&self, other: &CreatePolicyOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.