10 10 | /// <p>A unique, case-sensitive token that you provide to ensure idempotency of your modification request. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">Ensuring idempotency</a>.</p>
|
11 11 | pub client_token: ::std::option::Option<::std::string::String>,
|
12 12 | }
|
13 13 | impl DeleteVerifiedAccessTrustProviderInput {
|
14 14 | /// <p>The ID of the Verified Access trust provider.</p>
|
15 15 | pub fn verified_access_trust_provider_id(&self) -> ::std::option::Option<&str> {
|
16 16 | self.verified_access_trust_provider_id.as_deref()
|
17 17 | }
|
18 18 | /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
|
19 19 | pub fn dry_run(&self) -> ::std::option::Option<bool> {
|
20 20 | self.dry_run
|
21 21 | }
|
22 22 | /// <p>A unique, case-sensitive token that you provide to ensure idempotency of your modification request. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">Ensuring idempotency</a>.</p>
|
23 23 | pub fn client_token(&self) -> ::std::option::Option<&str> {
|
24 24 | self.client_token.as_deref()
|
25 25 | }
|
26 26 | }
|
27 27 | static DELETEVERIFIEDACCESSTRUSTPROVIDERINPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
|
28 28 | "com.amazonaws.ec2.synthetic#DeleteVerifiedAccessTrustProviderInput",
|
29 29 | "com.amazonaws.ec2.synthetic",
|
30 30 | "DeleteVerifiedAccessTrustProviderInput",
|
31 31 | );
|
32 32 | static DELETEVERIFIEDACCESSTRUSTPROVIDERINPUT_MEMBER_VERIFIED_ACCESS_TRUST_PROVIDER_ID: ::aws_smithy_schema::Schema =
|
33 33 | ::aws_smithy_schema::Schema::new_member(
|
34 34 | ::aws_smithy_schema::ShapeId::from_static(
|
35 35 | "com.amazonaws.ec2.synthetic#DeleteVerifiedAccessTrustProviderInput$VerifiedAccessTrustProviderId",
|
36 36 | "com.amazonaws.ec2.synthetic",
|
37 37 | "DeleteVerifiedAccessTrustProviderInput",
|
38 38 | ),
|
39 39 | ::aws_smithy_schema::ShapeType::String,
|
40 - | "verified_access_trust_provider_id",
|
40 + | "VerifiedAccessTrustProviderId",
|
41 41 | 0,
|
42 42 | );
|
43 43 | static DELETEVERIFIEDACCESSTRUSTPROVIDERINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
44 44 | ::aws_smithy_schema::ShapeId::from_static(
|
45 45 | "com.amazonaws.ec2.synthetic#DeleteVerifiedAccessTrustProviderInput$DryRun",
|
46 46 | "com.amazonaws.ec2.synthetic",
|
47 47 | "DeleteVerifiedAccessTrustProviderInput",
|
48 48 | ),
|
49 49 | ::aws_smithy_schema::ShapeType::Boolean,
|
50 - | "dry_run",
|
50 + | "DryRun",
|
51 51 | 1,
|
52 52 | );
|
53 53 | static DELETEVERIFIEDACCESSTRUSTPROVIDERINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
54 54 | ::aws_smithy_schema::ShapeId::from_static(
|
55 55 | "com.amazonaws.ec2.synthetic#DeleteVerifiedAccessTrustProviderInput$ClientToken",
|
56 56 | "com.amazonaws.ec2.synthetic",
|
57 57 | "DeleteVerifiedAccessTrustProviderInput",
|
58 58 | ),
|
59 59 | ::aws_smithy_schema::ShapeType::String,
|
60 - | "client_token",
|
60 + | "ClientToken",
|
61 61 | 2,
|
62 62 | );
|
63 63 | static DELETEVERIFIEDACCESSTRUSTPROVIDERINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
64 64 | DELETEVERIFIEDACCESSTRUSTPROVIDERINPUT_SCHEMA_ID,
|
65 65 | ::aws_smithy_schema::ShapeType::Structure,
|
66 66 | &[
|
67 67 | &DELETEVERIFIEDACCESSTRUSTPROVIDERINPUT_MEMBER_VERIFIED_ACCESS_TRUST_PROVIDER_ID,
|
68 68 | &DELETEVERIFIEDACCESSTRUSTPROVIDERINPUT_MEMBER_DRY_RUN,
|
69 69 | &DELETEVERIFIEDACCESSTRUSTPROVIDERINPUT_MEMBER_CLIENT_TOKEN,
|
70 70 | ],
|
71 71 | );
|
72 72 | impl DeleteVerifiedAccessTrustProviderInput {
|
73 73 | /// The schema for this shape.
|
74 74 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEVERIFIEDACCESSTRUSTPROVIDERINPUT_SCHEMA;
|
75 75 | }
|
76 76 | impl ::aws_smithy_schema::serde::SerializableStruct for DeleteVerifiedAccessTrustProviderInput {
|
77 77 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
78 78 | fn serialize_members(
|
79 79 | &self,
|
80 80 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
81 81 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
82 82 | if let Some(ref val) = self.verified_access_trust_provider_id {
|
83 83 | ser.write_string(&DELETEVERIFIEDACCESSTRUSTPROVIDERINPUT_MEMBER_VERIFIED_ACCESS_TRUST_PROVIDER_ID, val)?;
|
84 84 | }
|
85 85 | if let Some(ref val) = self.dry_run {
|
86 86 | ser.write_boolean(&DELETEVERIFIEDACCESSTRUSTPROVIDERINPUT_MEMBER_DRY_RUN, *val)?;
|
87 87 | }
|
88 88 | if let Some(ref val) = self.client_token {
|
89 89 | ser.write_string(&DELETEVERIFIEDACCESSTRUSTPROVIDERINPUT_MEMBER_CLIENT_TOKEN, val)?;
|
90 90 | }
|
91 91 | Ok(())
|
92 92 | }
|
93 93 | }
|
94 94 | impl DeleteVerifiedAccessTrustProviderInput {
|
95 95 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
96 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
97 - | deserializer: &mut D,
|
96 + | pub fn deserialize(
|
97 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
98 98 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
99 99 | #[allow(unused_variables, unused_mut)]
|
100 100 | let mut builder = Self::builder();
|
101 101 | #[allow(
|
102 102 | unused_variables,
|
103 103 | unreachable_code,
|
104 104 | clippy::single_match,
|
105 105 | clippy::match_single_binding,
|
106 106 | clippy::diverging_sub_expression
|
107 107 | )]
|
108 - | deserializer.read_struct(&DELETEVERIFIEDACCESSTRUSTPROVIDERINPUT_SCHEMA, (), |_, member, deser| {
|
108 + | deserializer.read_struct(&DELETEVERIFIEDACCESSTRUSTPROVIDERINPUT_SCHEMA, &mut |member, deser| {
|
109 109 | match member.member_index() {
|
110 110 | Some(0) => {
|
111 111 | builder.verified_access_trust_provider_id = Some(deser.read_string(member)?);
|
112 112 | }
|
113 113 | Some(1) => {
|
114 114 | builder.dry_run = Some(deser.read_boolean(member)?);
|
115 115 | }
|
116 116 | Some(2) => {
|
117 117 | builder.client_token = Some(deser.read_string(member)?);
|
118 118 | }
|
119 119 | _ => {}
|
120 120 | }
|
121 121 | Ok(())
|
122 122 | })?;
|
123 + | builder.verified_access_trust_provider_id = builder.verified_access_trust_provider_id.or(Some(String::new()));
|
123 124 | builder
|
124 125 | .build()
|
125 126 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
126 127 | }
|
127 128 | }
|
129 + | impl DeleteVerifiedAccessTrustProviderInput {
|
130 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
131 + | pub fn deserialize_with_response(
|
132 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
133 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
134 + | _status: u16,
|
135 + | _body: &[u8],
|
136 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
137 + | Self::deserialize(deserializer)
|
138 + | }
|
139 + | }
|
128 140 | impl DeleteVerifiedAccessTrustProviderInput {
|
129 141 | /// Creates a new builder-style object to manufacture [`DeleteVerifiedAccessTrustProviderInput`](crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderInput).
|
130 142 | pub fn builder() -> crate::operation::delete_verified_access_trust_provider::builders::DeleteVerifiedAccessTrustProviderInputBuilder {
|
131 143 | crate::operation::delete_verified_access_trust_provider::builders::DeleteVerifiedAccessTrustProviderInputBuilder::default()
|
132 144 | }
|
133 145 | }
|
134 146 |
|
135 147 | /// A builder for [`DeleteVerifiedAccessTrustProviderInput`](crate::operation::delete_verified_access_trust_provider::DeleteVerifiedAccessTrustProviderInput).
|
136 148 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
137 149 | #[non_exhaustive]
|