pub struct Builder { /* private fields */ }
Expand description

A builder for Listener.

Implementations§

The port mapping information for the listener.

The port mapping information for the listener.

Examples found in repository?
src/json_deser.rs (lines 6210-6214)
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
pub(crate) fn deser_structure_crate_model_listener<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Listener>, aws_smithy_json::deserialize::error::DeserializeError>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::listener::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "portMapping" => {
                                builder = builder.set_port_mapping(
                                    crate::json_deser::deser_structure_crate_model_port_mapping(
                                        tokens,
                                    )?,
                                );
                            }
                            "tls" => {
                                builder = builder.set_tls(
                                    crate::json_deser::deser_structure_crate_model_listener_tls(
                                        tokens,
                                    )?,
                                );
                            }
                            "healthCheck" => {
                                builder = builder.set_health_check(
                                    crate::json_deser::deser_structure_crate_model_health_check_policy(tokens)?
                                );
                            }
                            "timeout" => {
                                builder = builder.set_timeout(
                                    crate::json_deser::deser_union_crate_model_listener_timeout(
                                        tokens,
                                    )?,
                                );
                            }
                            "outlierDetection" => {
                                builder = builder.set_outlier_detection(
                                    crate::json_deser::deser_structure_crate_model_outlier_detection(tokens)?
                                );
                            }
                            "connectionPool" => {
                                builder = builder.set_connection_pool(
                                    crate::json_deser::deser_union_crate_model_virtual_node_connection_pool(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

A reference to an object that represents the Transport Layer Security (TLS) properties for a listener.

A reference to an object that represents the Transport Layer Security (TLS) properties for a listener.

Examples found in repository?
src/json_deser.rs (lines 6217-6221)
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
pub(crate) fn deser_structure_crate_model_listener<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Listener>, aws_smithy_json::deserialize::error::DeserializeError>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::listener::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "portMapping" => {
                                builder = builder.set_port_mapping(
                                    crate::json_deser::deser_structure_crate_model_port_mapping(
                                        tokens,
                                    )?,
                                );
                            }
                            "tls" => {
                                builder = builder.set_tls(
                                    crate::json_deser::deser_structure_crate_model_listener_tls(
                                        tokens,
                                    )?,
                                );
                            }
                            "healthCheck" => {
                                builder = builder.set_health_check(
                                    crate::json_deser::deser_structure_crate_model_health_check_policy(tokens)?
                                );
                            }
                            "timeout" => {
                                builder = builder.set_timeout(
                                    crate::json_deser::deser_union_crate_model_listener_timeout(
                                        tokens,
                                    )?,
                                );
                            }
                            "outlierDetection" => {
                                builder = builder.set_outlier_detection(
                                    crate::json_deser::deser_structure_crate_model_outlier_detection(tokens)?
                                );
                            }
                            "connectionPool" => {
                                builder = builder.set_connection_pool(
                                    crate::json_deser::deser_union_crate_model_virtual_node_connection_pool(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

The health check information for the listener.

The health check information for the listener.

Examples found in repository?
src/json_deser.rs (lines 6224-6226)
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
pub(crate) fn deser_structure_crate_model_listener<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Listener>, aws_smithy_json::deserialize::error::DeserializeError>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::listener::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "portMapping" => {
                                builder = builder.set_port_mapping(
                                    crate::json_deser::deser_structure_crate_model_port_mapping(
                                        tokens,
                                    )?,
                                );
                            }
                            "tls" => {
                                builder = builder.set_tls(
                                    crate::json_deser::deser_structure_crate_model_listener_tls(
                                        tokens,
                                    )?,
                                );
                            }
                            "healthCheck" => {
                                builder = builder.set_health_check(
                                    crate::json_deser::deser_structure_crate_model_health_check_policy(tokens)?
                                );
                            }
                            "timeout" => {
                                builder = builder.set_timeout(
                                    crate::json_deser::deser_union_crate_model_listener_timeout(
                                        tokens,
                                    )?,
                                );
                            }
                            "outlierDetection" => {
                                builder = builder.set_outlier_detection(
                                    crate::json_deser::deser_structure_crate_model_outlier_detection(tokens)?
                                );
                            }
                            "connectionPool" => {
                                builder = builder.set_connection_pool(
                                    crate::json_deser::deser_union_crate_model_virtual_node_connection_pool(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

An object that represents timeouts for different protocols.

An object that represents timeouts for different protocols.

Examples found in repository?
src/json_deser.rs (lines 6229-6233)
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
pub(crate) fn deser_structure_crate_model_listener<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Listener>, aws_smithy_json::deserialize::error::DeserializeError>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::listener::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "portMapping" => {
                                builder = builder.set_port_mapping(
                                    crate::json_deser::deser_structure_crate_model_port_mapping(
                                        tokens,
                                    )?,
                                );
                            }
                            "tls" => {
                                builder = builder.set_tls(
                                    crate::json_deser::deser_structure_crate_model_listener_tls(
                                        tokens,
                                    )?,
                                );
                            }
                            "healthCheck" => {
                                builder = builder.set_health_check(
                                    crate::json_deser::deser_structure_crate_model_health_check_policy(tokens)?
                                );
                            }
                            "timeout" => {
                                builder = builder.set_timeout(
                                    crate::json_deser::deser_union_crate_model_listener_timeout(
                                        tokens,
                                    )?,
                                );
                            }
                            "outlierDetection" => {
                                builder = builder.set_outlier_detection(
                                    crate::json_deser::deser_structure_crate_model_outlier_detection(tokens)?
                                );
                            }
                            "connectionPool" => {
                                builder = builder.set_connection_pool(
                                    crate::json_deser::deser_union_crate_model_virtual_node_connection_pool(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

The outlier detection information for the listener.

The outlier detection information for the listener.

Examples found in repository?
src/json_deser.rs (lines 6236-6238)
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
pub(crate) fn deser_structure_crate_model_listener<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Listener>, aws_smithy_json::deserialize::error::DeserializeError>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::listener::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "portMapping" => {
                                builder = builder.set_port_mapping(
                                    crate::json_deser::deser_structure_crate_model_port_mapping(
                                        tokens,
                                    )?,
                                );
                            }
                            "tls" => {
                                builder = builder.set_tls(
                                    crate::json_deser::deser_structure_crate_model_listener_tls(
                                        tokens,
                                    )?,
                                );
                            }
                            "healthCheck" => {
                                builder = builder.set_health_check(
                                    crate::json_deser::deser_structure_crate_model_health_check_policy(tokens)?
                                );
                            }
                            "timeout" => {
                                builder = builder.set_timeout(
                                    crate::json_deser::deser_union_crate_model_listener_timeout(
                                        tokens,
                                    )?,
                                );
                            }
                            "outlierDetection" => {
                                builder = builder.set_outlier_detection(
                                    crate::json_deser::deser_structure_crate_model_outlier_detection(tokens)?
                                );
                            }
                            "connectionPool" => {
                                builder = builder.set_connection_pool(
                                    crate::json_deser::deser_union_crate_model_virtual_node_connection_pool(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

The connection pool information for the listener.

The connection pool information for the listener.

Examples found in repository?
src/json_deser.rs (lines 6241-6243)
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
pub(crate) fn deser_structure_crate_model_listener<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Listener>, aws_smithy_json::deserialize::error::DeserializeError>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::listener::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "portMapping" => {
                                builder = builder.set_port_mapping(
                                    crate::json_deser::deser_structure_crate_model_port_mapping(
                                        tokens,
                                    )?,
                                );
                            }
                            "tls" => {
                                builder = builder.set_tls(
                                    crate::json_deser::deser_structure_crate_model_listener_tls(
                                        tokens,
                                    )?,
                                );
                            }
                            "healthCheck" => {
                                builder = builder.set_health_check(
                                    crate::json_deser::deser_structure_crate_model_health_check_policy(tokens)?
                                );
                            }
                            "timeout" => {
                                builder = builder.set_timeout(
                                    crate::json_deser::deser_union_crate_model_listener_timeout(
                                        tokens,
                                    )?,
                                );
                            }
                            "outlierDetection" => {
                                builder = builder.set_outlier_detection(
                                    crate::json_deser::deser_structure_crate_model_outlier_detection(tokens)?
                                );
                            }
                            "connectionPool" => {
                                builder = builder.set_connection_pool(
                                    crate::json_deser::deser_union_crate_model_virtual_node_connection_pool(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

Consumes the builder and constructs a Listener.

Examples found in repository?
src/json_deser.rs (line 6258)
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
pub(crate) fn deser_structure_crate_model_listener<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Listener>, aws_smithy_json::deserialize::error::DeserializeError>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::listener::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "portMapping" => {
                                builder = builder.set_port_mapping(
                                    crate::json_deser::deser_structure_crate_model_port_mapping(
                                        tokens,
                                    )?,
                                );
                            }
                            "tls" => {
                                builder = builder.set_tls(
                                    crate::json_deser::deser_structure_crate_model_listener_tls(
                                        tokens,
                                    )?,
                                );
                            }
                            "healthCheck" => {
                                builder = builder.set_health_check(
                                    crate::json_deser::deser_structure_crate_model_health_check_policy(tokens)?
                                );
                            }
                            "timeout" => {
                                builder = builder.set_timeout(
                                    crate::json_deser::deser_union_crate_model_listener_timeout(
                                        tokens,
                                    )?,
                                );
                            }
                            "outlierDetection" => {
                                builder = builder.set_outlier_detection(
                                    crate::json_deser::deser_structure_crate_model_outlier_detection(tokens)?
                                );
                            }
                            "connectionPool" => {
                                builder = builder.set_connection_pool(
                                    crate::json_deser::deser_union_crate_model_virtual_node_connection_pool(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more