aws_sdk_pcs/operation/delete_queue/_delete_queue_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 DeleteQueueInput {
6 /// <p>The name or ID of the cluster of the queue.</p>
7 pub cluster_identifier: ::std::option::Option<::std::string::String>,
8 /// <p>The name or ID of the queue to delete.</p>
9 pub queue_identifier: ::std::option::Option<::std::string::String>,
10 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.</p>
11 pub client_token: ::std::option::Option<::std::string::String>,
12}
13impl DeleteQueueInput {
14 /// <p>The name or ID of the cluster of the queue.</p>
15 pub fn cluster_identifier(&self) -> ::std::option::Option<&str> {
16 self.cluster_identifier.as_deref()
17 }
18 /// <p>The name or ID of the queue to delete.</p>
19 pub fn queue_identifier(&self) -> ::std::option::Option<&str> {
20 self.queue_identifier.as_deref()
21 }
22 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.</p>
23 pub fn client_token(&self) -> ::std::option::Option<&str> {
24 self.client_token.as_deref()
25 }
26}
27impl DeleteQueueInput {
28 /// Creates a new builder-style object to manufacture [`DeleteQueueInput`](crate::operation::delete_queue::DeleteQueueInput).
29 pub fn builder() -> crate::operation::delete_queue::builders::DeleteQueueInputBuilder {
30 crate::operation::delete_queue::builders::DeleteQueueInputBuilder::default()
31 }
32}
33
34/// A builder for [`DeleteQueueInput`](crate::operation::delete_queue::DeleteQueueInput).
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct DeleteQueueInputBuilder {
38 pub(crate) cluster_identifier: ::std::option::Option<::std::string::String>,
39 pub(crate) queue_identifier: ::std::option::Option<::std::string::String>,
40 pub(crate) client_token: ::std::option::Option<::std::string::String>,
41}
42impl DeleteQueueInputBuilder {
43 /// <p>The name or ID of the cluster of the queue.</p>
44 /// This field is required.
45 pub fn cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46 self.cluster_identifier = ::std::option::Option::Some(input.into());
47 self
48 }
49 /// <p>The name or ID of the cluster of the queue.</p>
50 pub fn set_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51 self.cluster_identifier = input;
52 self
53 }
54 /// <p>The name or ID of the cluster of the queue.</p>
55 pub fn get_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
56 &self.cluster_identifier
57 }
58 /// <p>The name or ID of the queue to delete.</p>
59 /// This field is required.
60 pub fn queue_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
61 self.queue_identifier = ::std::option::Option::Some(input.into());
62 self
63 }
64 /// <p>The name or ID of the queue to delete.</p>
65 pub fn set_queue_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
66 self.queue_identifier = input;
67 self
68 }
69 /// <p>The name or ID of the queue to delete.</p>
70 pub fn get_queue_identifier(&self) -> &::std::option::Option<::std::string::String> {
71 &self.queue_identifier
72 }
73 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.</p>
74 pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
75 self.client_token = ::std::option::Option::Some(input.into());
76 self
77 }
78 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.</p>
79 pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
80 self.client_token = input;
81 self
82 }
83 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.</p>
84 pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
85 &self.client_token
86 }
87 /// Consumes the builder and constructs a [`DeleteQueueInput`](crate::operation::delete_queue::DeleteQueueInput).
88 pub fn build(self) -> ::std::result::Result<crate::operation::delete_queue::DeleteQueueInput, ::aws_smithy_types::error::operation::BuildError> {
89 ::std::result::Result::Ok(crate::operation::delete_queue::DeleteQueueInput {
90 cluster_identifier: self.cluster_identifier,
91 queue_identifier: self.queue_identifier,
92 client_token: self.client_token,
93 })
94 }
95}