#[non_exhaustive]pub struct GetPolicyOutputBuilder { /* private fields */ }Expand description
A builder for GetPolicyOutput.
Implementations§
source§impl GetPolicyOutputBuilder
impl GetPolicyOutputBuilder
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 you want information about.
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 you want information about.
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 you want information about.
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 policy that you want information about.
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 policy that you want information about.
sourcepub fn get_policy_id(&self) -> &Option<String>
pub fn get_policy_id(&self) -> &Option<String>
The unique ID of the policy that you want information about.
sourcepub fn policy_type(self, input: PolicyType) -> Self
pub fn policy_type(self, input: PolicyType) -> Self
The type of the 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 type of the policy.
sourcepub fn get_policy_type(&self) -> &Option<PolicyType>
pub fn get_policy_type(&self) -> &Option<PolicyType>
The type of the policy.
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 definition(self, input: PolicyDefinitionDetail) -> Self
pub fn definition(self, input: PolicyDefinitionDetail) -> Self
The definition of the requested policy.
This field is required.sourcepub fn set_definition(self, input: Option<PolicyDefinitionDetail>) -> Self
pub fn set_definition(self, input: Option<PolicyDefinitionDetail>) -> Self
The definition of the requested policy.
sourcepub fn get_definition(&self) -> &Option<PolicyDefinitionDetail>
pub fn get_definition(&self) -> &Option<PolicyDefinitionDetail>
The definition of the requested policy.
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 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 that 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 that the policy was last updated.
sourcepub fn build(self) -> Result<GetPolicyOutput, BuildError>
pub fn build(self) -> Result<GetPolicyOutput, BuildError>
Consumes the builder and constructs a GetPolicyOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GetPolicyOutputBuilder
impl Clone for GetPolicyOutputBuilder
source§fn clone(&self) -> GetPolicyOutputBuilder
fn clone(&self) -> GetPolicyOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetPolicyOutputBuilder
impl Debug for GetPolicyOutputBuilder
source§impl Default for GetPolicyOutputBuilder
impl Default for GetPolicyOutputBuilder
source§fn default() -> GetPolicyOutputBuilder
fn default() -> GetPolicyOutputBuilder
source§impl PartialEq for GetPolicyOutputBuilder
impl PartialEq for GetPolicyOutputBuilder
source§fn eq(&self, other: &GetPolicyOutputBuilder) -> bool
fn eq(&self, other: &GetPolicyOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.