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 ==.impl StructuralPartialEq for CreatePolicyOutputBuilder
Auto Trait Implementations§
impl Freeze for CreatePolicyOutputBuilder
impl RefUnwindSafe for CreatePolicyOutputBuilder
impl Send for CreatePolicyOutputBuilder
impl Sync for CreatePolicyOutputBuilder
impl Unpin for CreatePolicyOutputBuilder
impl UnwindSafe for CreatePolicyOutputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more