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.
This field is required.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 get_policy_name(&self) -> &Option<String>
pub fn get_policy_name(&self) -> &Option<String>
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.
This field is required.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 get_policy_document(&self) -> &Option<String>
pub fn get_policy_document(&self) -> &Option<String>
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 get_set_as_default(&self) -> &Option<bool>
pub fn get_set_as_default(&self) -> &Option<bool>
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
.
source§impl CreatePolicyVersionInputBuilder
impl CreatePolicyVersionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreatePolicyVersionOutput, SdkError<CreatePolicyVersionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreatePolicyVersionOutput, SdkError<CreatePolicyVersionError, HttpResponse>>
Sends a request with this input using the given client.
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 for CreatePolicyVersionInputBuilder
impl PartialEq 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 ==
.