Struct aws_sdk_iot::operation::create_policy_version::builders::CreatePolicyVersionInputBuilder
source · #[non_exhaustive]pub struct CreatePolicyVersionInputBuilder { /* private fields */ }Expand description
A builder for CreatePolicyVersionInput.
Implementations§
source§impl CreatePolicyVersionInputBuilder
impl CreatePolicyVersionInputBuilder
sourcepub fn policy_name(self, input: impl Into<String>) -> Self
pub fn policy_name(self, input: impl Into<String>) -> Self
The policy name.
sourcepub fn set_policy_name(self, input: Option<String>) -> Self
pub fn set_policy_name(self, input: Option<String>) -> Self
The policy name.
sourcepub fn policy_document(self, input: impl Into<String>) -> Self
pub fn policy_document(self, input: impl Into<String>) -> Self
The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace.
sourcepub fn set_policy_document(self, input: Option<String>) -> Self
pub fn set_policy_document(self, input: Option<String>) -> Self
The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace.
sourcepub fn set_as_default(self, input: bool) -> Self
pub fn set_as_default(self, input: bool) -> Self
Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).
sourcepub fn set_set_as_default(self, input: Option<bool>) -> Self
pub fn set_set_as_default(self, input: Option<bool>) -> Self
Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).
sourcepub fn build(self) -> Result<CreatePolicyVersionInput, BuildError>
pub fn build(self) -> Result<CreatePolicyVersionInput, BuildError>
Consumes the builder and constructs a CreatePolicyVersionInput.
Trait Implementations§
source§impl Clone for CreatePolicyVersionInputBuilder
impl Clone for CreatePolicyVersionInputBuilder
source§fn clone(&self) -> CreatePolicyVersionInputBuilder
fn clone(&self) -> CreatePolicyVersionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreatePolicyVersionInputBuilder
impl Default for CreatePolicyVersionInputBuilder
source§fn default() -> CreatePolicyVersionInputBuilder
fn default() -> CreatePolicyVersionInputBuilder
source§impl PartialEq<CreatePolicyVersionInputBuilder> for CreatePolicyVersionInputBuilder
impl PartialEq<CreatePolicyVersionInputBuilder> for CreatePolicyVersionInputBuilder
source§fn eq(&self, other: &CreatePolicyVersionInputBuilder) -> bool
fn eq(&self, other: &CreatePolicyVersionInputBuilder) -> bool
self and other values to be equal, and is used
by ==.