Struct aws_sdk_appmesh::model::listener::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Listener
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn port_mapping(self, input: PortMapping) -> Self
pub fn port_mapping(self, input: PortMapping) -> Self
The port mapping information for the listener.
sourcepub fn set_port_mapping(self, input: Option<PortMapping>) -> Self
pub fn set_port_mapping(self, input: Option<PortMapping>) -> Self
The port mapping information for the listener.
Examples found in repository?
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",
),
),
}
}
sourcepub fn tls(self, input: ListenerTls) -> Self
pub fn tls(self, input: ListenerTls) -> Self
A reference to an object that represents the Transport Layer Security (TLS) properties for a listener.
sourcepub fn set_tls(self, input: Option<ListenerTls>) -> Self
pub fn set_tls(self, input: Option<ListenerTls>) -> Self
A reference to an object that represents the Transport Layer Security (TLS) properties for a listener.
Examples found in repository?
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",
),
),
}
}
sourcepub fn health_check(self, input: HealthCheckPolicy) -> Self
pub fn health_check(self, input: HealthCheckPolicy) -> Self
The health check information for the listener.
sourcepub fn set_health_check(self, input: Option<HealthCheckPolicy>) -> Self
pub fn set_health_check(self, input: Option<HealthCheckPolicy>) -> Self
The health check information for the listener.
Examples found in repository?
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",
),
),
}
}
sourcepub fn timeout(self, input: ListenerTimeout) -> Self
pub fn timeout(self, input: ListenerTimeout) -> Self
An object that represents timeouts for different protocols.
sourcepub fn set_timeout(self, input: Option<ListenerTimeout>) -> Self
pub fn set_timeout(self, input: Option<ListenerTimeout>) -> Self
An object that represents timeouts for different protocols.
Examples found in repository?
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",
),
),
}
}
sourcepub fn outlier_detection(self, input: OutlierDetection) -> Self
pub fn outlier_detection(self, input: OutlierDetection) -> Self
The outlier detection information for the listener.
sourcepub fn set_outlier_detection(self, input: Option<OutlierDetection>) -> Self
pub fn set_outlier_detection(self, input: Option<OutlierDetection>) -> Self
The outlier detection information for the listener.
Examples found in repository?
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",
),
),
}
}
sourcepub fn connection_pool(self, input: VirtualNodeConnectionPool) -> Self
pub fn connection_pool(self, input: VirtualNodeConnectionPool) -> Self
The connection pool information for the listener.
sourcepub fn set_connection_pool(
self,
input: Option<VirtualNodeConnectionPool>
) -> Self
pub fn set_connection_pool(
self,
input: Option<VirtualNodeConnectionPool>
) -> Self
The connection pool information for the listener.
Examples found in repository?
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",
),
),
}
}
sourcepub fn build(self) -> Listener
pub fn build(self) -> Listener
Consumes the builder and constructs a Listener
.
Examples found in repository?
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",
),
),
}
}