Struct aws_sdk_lexmodelsv2::operation::delete_resource_policy::builders::DeleteResourcePolicyInputBuilder
source · #[non_exhaustive]pub struct DeleteResourcePolicyInputBuilder { /* private fields */ }Expand description
A builder for DeleteResourcePolicyInput.
Implementations§
source§impl DeleteResourcePolicyInputBuilder
impl DeleteResourcePolicyInputBuilder
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the bot or bot alias that has the resource policy attached.
This field is required.sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the bot or bot alias that has the resource policy attached.
sourcepub fn get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the bot or bot alias that has the resource policy attached.
sourcepub fn expected_revision_id(self, input: impl Into<String>) -> Self
pub fn expected_revision_id(self, input: impl Into<String>) -> Self
The identifier of the revision to edit. If this ID doesn't match the current revision number, Amazon Lex returns an exception
If you don't specify a revision ID, Amazon Lex will delete the current policy.
sourcepub fn set_expected_revision_id(self, input: Option<String>) -> Self
pub fn set_expected_revision_id(self, input: Option<String>) -> Self
The identifier of the revision to edit. If this ID doesn't match the current revision number, Amazon Lex returns an exception
If you don't specify a revision ID, Amazon Lex will delete the current policy.
sourcepub fn get_expected_revision_id(&self) -> &Option<String>
pub fn get_expected_revision_id(&self) -> &Option<String>
The identifier of the revision to edit. If this ID doesn't match the current revision number, Amazon Lex returns an exception
If you don't specify a revision ID, Amazon Lex will delete the current policy.
sourcepub fn build(self) -> Result<DeleteResourcePolicyInput, BuildError>
pub fn build(self) -> Result<DeleteResourcePolicyInput, BuildError>
Consumes the builder and constructs a DeleteResourcePolicyInput.
source§impl DeleteResourcePolicyInputBuilder
impl DeleteResourcePolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DeleteResourcePolicyOutput, SdkError<DeleteResourcePolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DeleteResourcePolicyOutput, SdkError<DeleteResourcePolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DeleteResourcePolicyInputBuilder
impl Clone for DeleteResourcePolicyInputBuilder
source§fn clone(&self) -> DeleteResourcePolicyInputBuilder
fn clone(&self) -> DeleteResourcePolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for DeleteResourcePolicyInputBuilder
impl Default for DeleteResourcePolicyInputBuilder
source§fn default() -> DeleteResourcePolicyInputBuilder
fn default() -> DeleteResourcePolicyInputBuilder
source§impl PartialEq for DeleteResourcePolicyInputBuilder
impl PartialEq for DeleteResourcePolicyInputBuilder
source§fn eq(&self, other: &DeleteResourcePolicyInputBuilder) -> bool
fn eq(&self, other: &DeleteResourcePolicyInputBuilder) -> bool
self and other values to be equal, and is used
by ==.