9 9 | pub client_token: ::std::option::Option<::std::string::String>,
|
10 10 | /// <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>
|
11 11 | pub dry_run: ::std::option::Option<bool>,
|
12 12 | }
|
13 13 | impl DeleteVerifiedAccessEndpointInput {
|
14 14 | /// <p>The ID of the Verified Access endpoint.</p>
|
15 15 | pub fn verified_access_endpoint_id(&self) -> ::std::option::Option<&str> {
|
16 16 | self.verified_access_endpoint_id.as_deref()
|
17 17 | }
|
18 18 | /// <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>
|
19 19 | pub fn client_token(&self) -> ::std::option::Option<&str> {
|
20 20 | self.client_token.as_deref()
|
21 21 | }
|
22 22 | /// <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>
|
23 23 | pub fn dry_run(&self) -> ::std::option::Option<bool> {
|
24 24 | self.dry_run
|
25 25 | }
|
26 26 | }
|
27 27 | static DELETEVERIFIEDACCESSENDPOINTINPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
|
28 28 | "com.amazonaws.ec2.synthetic#DeleteVerifiedAccessEndpointInput",
|
29 29 | "com.amazonaws.ec2.synthetic",
|
30 30 | "DeleteVerifiedAccessEndpointInput",
|
31 31 | );
|
32 32 | static DELETEVERIFIEDACCESSENDPOINTINPUT_MEMBER_VERIFIED_ACCESS_ENDPOINT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
33 33 | ::aws_smithy_schema::ShapeId::from_static(
|
34 34 | "com.amazonaws.ec2.synthetic#DeleteVerifiedAccessEndpointInput$VerifiedAccessEndpointId",
|
35 35 | "com.amazonaws.ec2.synthetic",
|
36 36 | "DeleteVerifiedAccessEndpointInput",
|
37 37 | ),
|
38 38 | ::aws_smithy_schema::ShapeType::String,
|
39 - | "verified_access_endpoint_id",
|
39 + | "VerifiedAccessEndpointId",
|
40 40 | 0,
|
41 41 | );
|
42 42 | static DELETEVERIFIEDACCESSENDPOINTINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
43 43 | ::aws_smithy_schema::ShapeId::from_static(
|
44 44 | "com.amazonaws.ec2.synthetic#DeleteVerifiedAccessEndpointInput$ClientToken",
|
45 45 | "com.amazonaws.ec2.synthetic",
|
46 46 | "DeleteVerifiedAccessEndpointInput",
|
47 47 | ),
|
48 48 | ::aws_smithy_schema::ShapeType::String,
|
49 - | "client_token",
|
49 + | "ClientToken",
|
50 50 | 1,
|
51 51 | );
|
52 52 | static DELETEVERIFIEDACCESSENDPOINTINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
53 53 | ::aws_smithy_schema::ShapeId::from_static(
|
54 54 | "com.amazonaws.ec2.synthetic#DeleteVerifiedAccessEndpointInput$DryRun",
|
55 55 | "com.amazonaws.ec2.synthetic",
|
56 56 | "DeleteVerifiedAccessEndpointInput",
|
57 57 | ),
|
58 58 | ::aws_smithy_schema::ShapeType::Boolean,
|
59 - | "dry_run",
|
59 + | "DryRun",
|
60 60 | 2,
|
61 61 | );
|
62 62 | static DELETEVERIFIEDACCESSENDPOINTINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
63 63 | DELETEVERIFIEDACCESSENDPOINTINPUT_SCHEMA_ID,
|
64 64 | ::aws_smithy_schema::ShapeType::Structure,
|
65 65 | &[
|
66 66 | &DELETEVERIFIEDACCESSENDPOINTINPUT_MEMBER_VERIFIED_ACCESS_ENDPOINT_ID,
|
67 67 | &DELETEVERIFIEDACCESSENDPOINTINPUT_MEMBER_CLIENT_TOKEN,
|
68 68 | &DELETEVERIFIEDACCESSENDPOINTINPUT_MEMBER_DRY_RUN,
|
69 69 | ],
|
70 70 | );
|
71 71 | impl DeleteVerifiedAccessEndpointInput {
|
72 72 | /// The schema for this shape.
|
73 73 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEVERIFIEDACCESSENDPOINTINPUT_SCHEMA;
|
74 74 | }
|
75 75 | impl ::aws_smithy_schema::serde::SerializableStruct for DeleteVerifiedAccessEndpointInput {
|
76 76 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
77 77 | fn serialize_members(
|
78 78 | &self,
|
79 79 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
80 80 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
81 81 | if let Some(ref val) = self.verified_access_endpoint_id {
|
82 82 | ser.write_string(&DELETEVERIFIEDACCESSENDPOINTINPUT_MEMBER_VERIFIED_ACCESS_ENDPOINT_ID, val)?;
|
83 83 | }
|
84 84 | if let Some(ref val) = self.client_token {
|
85 85 | ser.write_string(&DELETEVERIFIEDACCESSENDPOINTINPUT_MEMBER_CLIENT_TOKEN, val)?;
|
86 86 | }
|
87 87 | if let Some(ref val) = self.dry_run {
|
88 88 | ser.write_boolean(&DELETEVERIFIEDACCESSENDPOINTINPUT_MEMBER_DRY_RUN, *val)?;
|
89 89 | }
|
90 90 | Ok(())
|
91 91 | }
|
92 92 | }
|
93 93 | impl DeleteVerifiedAccessEndpointInput {
|
94 94 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
95 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
96 - | deserializer: &mut D,
|
95 + | pub fn deserialize(
|
96 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
97 97 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
98 98 | #[allow(unused_variables, unused_mut)]
|
99 99 | let mut builder = Self::builder();
|
100 100 | #[allow(
|
101 101 | unused_variables,
|
102 102 | unreachable_code,
|
103 103 | clippy::single_match,
|
104 104 | clippy::match_single_binding,
|
105 105 | clippy::diverging_sub_expression
|
106 106 | )]
|
107 - | deserializer.read_struct(&DELETEVERIFIEDACCESSENDPOINTINPUT_SCHEMA, (), |_, member, deser| {
|
107 + | deserializer.read_struct(&DELETEVERIFIEDACCESSENDPOINTINPUT_SCHEMA, &mut |member, deser| {
|
108 108 | match member.member_index() {
|
109 109 | Some(0) => {
|
110 110 | builder.verified_access_endpoint_id = Some(deser.read_string(member)?);
|
111 111 | }
|
112 112 | Some(1) => {
|
113 113 | builder.client_token = Some(deser.read_string(member)?);
|
114 114 | }
|
115 115 | Some(2) => {
|
116 116 | builder.dry_run = Some(deser.read_boolean(member)?);
|
117 117 | }
|
118 118 | _ => {}
|
119 119 | }
|
120 120 | Ok(())
|
121 121 | })?;
|
122 + | builder.verified_access_endpoint_id = builder.verified_access_endpoint_id.or(Some(String::new()));
|
122 123 | builder
|
123 124 | .build()
|
124 125 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
125 126 | }
|
126 127 | }
|
128 + | impl DeleteVerifiedAccessEndpointInput {
|
129 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
130 + | pub fn deserialize_with_response(
|
131 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
132 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
133 + | _status: u16,
|
134 + | _body: &[u8],
|
135 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
136 + | Self::deserialize(deserializer)
|
137 + | }
|
138 + | }
|
127 139 | impl DeleteVerifiedAccessEndpointInput {
|
128 140 | /// Creates a new builder-style object to manufacture [`DeleteVerifiedAccessEndpointInput`](crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointInput).
|
129 141 | pub fn builder() -> crate::operation::delete_verified_access_endpoint::builders::DeleteVerifiedAccessEndpointInputBuilder {
|
130 142 | crate::operation::delete_verified_access_endpoint::builders::DeleteVerifiedAccessEndpointInputBuilder::default()
|
131 143 | }
|
132 144 | }
|
133 145 |
|
134 146 | /// A builder for [`DeleteVerifiedAccessEndpointInput`](crate::operation::delete_verified_access_endpoint::DeleteVerifiedAccessEndpointInput).
|
135 147 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
136 148 | #[non_exhaustive]
|