1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PostAgentProfile`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`profiling_group_name(impl Into<String>)`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::profiling_group_name) / [`set_profiling_group_name(Option<String>)`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::set_profiling_group_name): <p> The name of the profiling group with the aggregated profile that receives the submitted profiling data. </p>
    ///   - [`agent_profile(Blob)`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::agent_profile) / [`set_agent_profile(Option<Blob>)`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::set_agent_profile): <p> The submitted profiling data. </p>
    ///   - [`profile_token(impl Into<String>)`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::profile_token) / [`set_profile_token(Option<String>)`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::set_profile_token): <p> Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to prevent the accidental submission of duplicate profiling data if there are failures and retries. </p>
    ///   - [`content_type(impl Into<String>)`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::content_type) / [`set_content_type(Option<String>)`](crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::set_content_type): <p> The format of the submitted profiling data. The format maps to the <code>Accept</code> and <code>Content-Type</code> headers of the HTTP request. You can specify one of the following: or the default . </p>  <ul>   <li> <p> <code>application/json</code> — standard JSON format </p> </li>   <li> <p> <code>application/x-amzn-ion</code> — the Amazon Ion data format. For more information, see <a href="http://amzn.github.io/ion-docs/">Amazon Ion</a>. </p> </li>  </ul>
    /// - On success, responds with [`PostAgentProfileOutput`](crate::operation::post_agent_profile::PostAgentProfileOutput)
    /// - On failure, responds with [`SdkError<PostAgentProfileError>`](crate::operation::post_agent_profile::PostAgentProfileError)
    pub fn post_agent_profile(&self) -> crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder {
        crate::operation::post_agent_profile::builders::PostAgentProfileFluentBuilder::new(self.handle.clone())
    }
}