aws_sdk_cloudwatchlogs/operation/delete_integration/_delete_integration_input.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteIntegrationInput {
6 /// <p>The name of the integration to delete. To find the name of your integration, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html">ListIntegrations</a>.</p>
7 pub integration_name: ::std::option::Option<::std::string::String>,
8 /// <p>Specify <code>true</code> to force the deletion of the integration even if vended logs dashboards currently exist.</p>
9 /// <p>The default is <code>false</code>.</p>
10 pub force: ::std::option::Option<bool>,
11}
12impl DeleteIntegrationInput {
13 /// <p>The name of the integration to delete. To find the name of your integration, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html">ListIntegrations</a>.</p>
14 pub fn integration_name(&self) -> ::std::option::Option<&str> {
15 self.integration_name.as_deref()
16 }
17 /// <p>Specify <code>true</code> to force the deletion of the integration even if vended logs dashboards currently exist.</p>
18 /// <p>The default is <code>false</code>.</p>
19 pub fn force(&self) -> ::std::option::Option<bool> {
20 self.force
21 }
22}
23impl DeleteIntegrationInput {
24 /// Creates a new builder-style object to manufacture [`DeleteIntegrationInput`](crate::operation::delete_integration::DeleteIntegrationInput).
25 pub fn builder() -> crate::operation::delete_integration::builders::DeleteIntegrationInputBuilder {
26 crate::operation::delete_integration::builders::DeleteIntegrationInputBuilder::default()
27 }
28}
29
30/// A builder for [`DeleteIntegrationInput`](crate::operation::delete_integration::DeleteIntegrationInput).
31#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
32#[non_exhaustive]
33pub struct DeleteIntegrationInputBuilder {
34 pub(crate) integration_name: ::std::option::Option<::std::string::String>,
35 pub(crate) force: ::std::option::Option<bool>,
36}
37impl DeleteIntegrationInputBuilder {
38 /// <p>The name of the integration to delete. To find the name of your integration, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html">ListIntegrations</a>.</p>
39 /// This field is required.
40 pub fn integration_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
41 self.integration_name = ::std::option::Option::Some(input.into());
42 self
43 }
44 /// <p>The name of the integration to delete. To find the name of your integration, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html">ListIntegrations</a>.</p>
45 pub fn set_integration_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
46 self.integration_name = input;
47 self
48 }
49 /// <p>The name of the integration to delete. To find the name of your integration, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html">ListIntegrations</a>.</p>
50 pub fn get_integration_name(&self) -> &::std::option::Option<::std::string::String> {
51 &self.integration_name
52 }
53 /// <p>Specify <code>true</code> to force the deletion of the integration even if vended logs dashboards currently exist.</p>
54 /// <p>The default is <code>false</code>.</p>
55 pub fn force(mut self, input: bool) -> Self {
56 self.force = ::std::option::Option::Some(input);
57 self
58 }
59 /// <p>Specify <code>true</code> to force the deletion of the integration even if vended logs dashboards currently exist.</p>
60 /// <p>The default is <code>false</code>.</p>
61 pub fn set_force(mut self, input: ::std::option::Option<bool>) -> Self {
62 self.force = input;
63 self
64 }
65 /// <p>Specify <code>true</code> to force the deletion of the integration even if vended logs dashboards currently exist.</p>
66 /// <p>The default is <code>false</code>.</p>
67 pub fn get_force(&self) -> &::std::option::Option<bool> {
68 &self.force
69 }
70 /// Consumes the builder and constructs a [`DeleteIntegrationInput`](crate::operation::delete_integration::DeleteIntegrationInput).
71 pub fn build(
72 self,
73 ) -> ::std::result::Result<crate::operation::delete_integration::DeleteIntegrationInput, ::aws_smithy_types::error::operation::BuildError> {
74 ::std::result::Result::Ok(crate::operation::delete_integration::DeleteIntegrationInput {
75 integration_name: self.integration_name,
76 force: self.force,
77 })
78 }
79}