pub struct ListRoutingProfileQueues { /* private fields */ }
Expand description
Operation shape for ListRoutingProfileQueues
.
This is usually constructed for you using the the fluent builder returned by
list_routing_profile_queues
.
See crate::client::fluent_builders::ListRoutingProfileQueues
for more details about the operation.
Implementations§
source§impl ListRoutingProfileQueues
impl ListRoutingProfileQueues
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ListRoutingProfileQueuesInput
.
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new ListRoutingProfileQueues
operation.
Examples found in repository?
src/input.rs (line 19504)
19363 19364 19365 19366 19367 19368 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378 19379 19380 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423 19424 19425 19426 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 19446 19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512
pub async fn make_operation(
&self,
_config: &crate::config::Config,
) -> std::result::Result<
aws_smithy_http::operation::Operation<
crate::operation::ListRoutingProfileQueues,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::operation::error::BuildError,
> {
let mut request = {
fn uri_base(
_input: &crate::input::ListRoutingProfileQueuesInput,
output: &mut String,
) -> Result<(), aws_smithy_http::operation::error::BuildError> {
let input_182 = &_input.instance_id;
let input_182 = input_182.as_ref().ok_or_else(|| {
aws_smithy_http::operation::error::BuildError::missing_field(
"instance_id",
"cannot be empty or unset",
)
})?;
let instance_id = aws_smithy_http::label::fmt_string(
input_182,
aws_smithy_http::label::EncodingStrategy::Default,
);
if instance_id.is_empty() {
return Err(
aws_smithy_http::operation::error::BuildError::missing_field(
"instance_id",
"cannot be empty or unset",
),
);
}
let input_183 = &_input.routing_profile_id;
let input_183 = input_183.as_ref().ok_or_else(|| {
aws_smithy_http::operation::error::BuildError::missing_field(
"routing_profile_id",
"cannot be empty or unset",
)
})?;
let routing_profile_id = aws_smithy_http::label::fmt_string(
input_183,
aws_smithy_http::label::EncodingStrategy::Default,
);
if routing_profile_id.is_empty() {
return Err(
aws_smithy_http::operation::error::BuildError::missing_field(
"routing_profile_id",
"cannot be empty or unset",
),
);
}
write!(
output,
"/routing-profiles/{InstanceId}/{RoutingProfileId}/queues",
InstanceId = instance_id,
RoutingProfileId = routing_profile_id
)
.expect("formatting should succeed");
Ok(())
}
fn uri_query(
_input: &crate::input::ListRoutingProfileQueuesInput,
mut output: &mut String,
) -> Result<(), aws_smithy_http::operation::error::BuildError> {
let mut query = aws_smithy_http::query::Writer::new(&mut output);
if let Some(inner_184) = &_input.next_token {
{
query.push_kv("nextToken", &aws_smithy_http::query::fmt_string(&inner_184));
}
}
if let Some(inner_185) = &_input.max_results {
if *inner_185 != 0 {
query.push_kv(
"maxResults",
aws_smithy_types::primitive::Encoder::from(*inner_185).encode(),
);
}
}
Ok(())
}
#[allow(clippy::unnecessary_wraps)]
fn update_http_builder(
input: &crate::input::ListRoutingProfileQueuesInput,
builder: http::request::Builder,
) -> std::result::Result<
http::request::Builder,
aws_smithy_http::operation::error::BuildError,
> {
let mut uri = String::new();
uri_base(input, &mut uri)?;
uri_query(input, &mut uri)?;
Ok(builder.method("GET").uri(uri))
}
let mut builder = update_http_builder(&self, http::request::Builder::new())?;
builder
};
let mut properties = aws_smithy_http::property_bag::SharedPropertyBag::new();
#[allow(clippy::useless_conversion)]
let body = aws_smithy_http::body::SdkBody::from("");
let request = request.body(body).expect("should be valid request");
let mut request = aws_smithy_http::operation::Request::from_parts(request, properties);
request
.properties_mut()
.insert(aws_smithy_http::http_versions::DEFAULT_HTTP_VERSION_LIST.clone());
let mut user_agent = aws_http::user_agent::AwsUserAgent::new_from_environment(
aws_types::os_shim_internal::Env::real(),
crate::API_METADATA.clone(),
);
if let Some(app_name) = _config.app_name() {
user_agent = user_agent.with_app_name(app_name.clone());
}
request.properties_mut().insert(user_agent);
let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config();
request.properties_mut().insert(signing_config);
request
.properties_mut()
.insert(aws_types::SigningService::from_static(
_config.signing_service(),
));
if let Some(region) = &_config.region {
request
.properties_mut()
.insert(aws_types::region::SigningRegion::from(region.clone()));
}
let endpoint_params = aws_endpoint::Params::new(_config.region.clone());
request
.properties_mut()
.insert::<aws_smithy_http::endpoint::Result>(
_config.endpoint_resolver.resolve_endpoint(&endpoint_params),
);
if let Some(region) = &_config.region {
request.properties_mut().insert(region.clone());
}
aws_http::auth::set_provider(
&mut request.properties_mut(),
_config.credentials_provider.clone(),
);
let op = aws_smithy_http::operation::Operation::new(
request,
crate::operation::ListRoutingProfileQueues::new(),
)
.with_metadata(aws_smithy_http::operation::Metadata::new(
"ListRoutingProfileQueues",
"connect",
));
let op = op.with_retry_classifier(aws_http::retry::AwsResponseRetryClassifier::new());
Ok(op)
}
Trait Implementations§
source§impl Clone for ListRoutingProfileQueues
impl Clone for ListRoutingProfileQueues
source§fn clone(&self) -> ListRoutingProfileQueues
fn clone(&self) -> ListRoutingProfileQueues
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ListRoutingProfileQueues
impl Debug for ListRoutingProfileQueues
source§impl Default for ListRoutingProfileQueues
impl Default for ListRoutingProfileQueues
source§fn default() -> ListRoutingProfileQueues
fn default() -> ListRoutingProfileQueues
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ListRoutingProfileQueues
impl Send for ListRoutingProfileQueues
impl Sync for ListRoutingProfileQueues
impl Unpin for ListRoutingProfileQueues
impl UnwindSafe for ListRoutingProfileQueues
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> ParseHttpResponse for Twhere
T: ParseStrictResponse,
impl<T> ParseHttpResponse for Twhere
T: ParseStrictResponse,
§type Output = <T as ParseStrictResponse>::Output
type Output = <T as ParseStrictResponse>::Output
Output type of the HttpResponse. Read more
source§fn parse_unloaded(
&self,
_response: &mut Response
) -> Option<<T as ParseHttpResponse>::Output>
fn parse_unloaded(
&self,
_response: &mut Response
) -> Option<<T as ParseHttpResponse>::Output>
Parse an HTTP request without reading the body. If the body must be provided to proceed,
return
None
Read moresource§fn parse_loaded(
&self,
response: &Response<Bytes>
) -> <T as ParseHttpResponse>::Output
fn parse_loaded(
&self,
response: &Response<Bytes>
) -> <T as ParseHttpResponse>::Output
Parse an HTTP request from a fully loaded body. This is for standard request/response style
APIs like AwsJson 1.0/1.1 and the error path of most streaming APIs Read more