Struct aws_sdk_codeguruprofiler::input::get_profile_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for GetProfileInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn profiling_group_name(self, input: impl Into<String>) -> Self
pub fn profiling_group_name(self, input: impl Into<String>) -> Self
The name of the profiling group to get.
sourcepub fn set_profiling_group_name(self, input: Option<String>) -> Self
pub fn set_profiling_group_name(self, input: Option<String>) -> Self
The name of the profiling group to get.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The start time of the profile to get. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
If you specify startTime
, then you must also specify period
or endTime
, but not both.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The start time of the profile to get. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
If you specify startTime
, then you must also specify period
or endTime
, but not both.
sourcepub fn period(self, input: impl Into<String>) -> Self
pub fn period(self, input: impl Into<String>) -> Self
Used with startTime
or endTime
to specify the time range for the returned aggregated profile. Specify using the ISO 8601 format. For example, P1DT1H1M1S
.
To get the latest aggregated profile, specify only period
.
sourcepub fn set_period(self, input: Option<String>) -> Self
pub fn set_period(self, input: Option<String>) -> Self
Used with startTime
or endTime
to specify the time range for the returned aggregated profile. Specify using the ISO 8601 format. For example, P1DT1H1M1S
.
To get the latest aggregated profile, specify only period
.
sourcepub fn end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
The end time of the requested profile. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
If you specify endTime
, then you must also specify period
or startTime
, but not both.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The end time of the requested profile. Specify using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
If you specify endTime
, then you must also specify period
or startTime
, but not both.
sourcepub fn max_depth(self, input: i32) -> Self
pub fn max_depth(self, input: i32) -> Self
The maximum depth of the stacks in the code that is represented in the aggregated profile. For example, if CodeGuru Profiler finds a method A
, which calls method B
, which calls method C
, which calls method D
, then the depth is 4. If the maxDepth
is set to 2, then the aggregated profile contains representations of methods A
and B
.
sourcepub fn set_max_depth(self, input: Option<i32>) -> Self
pub fn set_max_depth(self, input: Option<i32>) -> Self
The maximum depth of the stacks in the code that is represented in the aggregated profile. For example, if CodeGuru Profiler finds a method A
, which calls method B
, which calls method C
, which calls method D
, then the depth is 4. If the maxDepth
is set to 2, then the aggregated profile contains representations of methods A
and B
.
sourcepub fn accept(self, input: impl Into<String>) -> Self
pub fn accept(self, input: impl Into<String>) -> Self
The format of the returned profiling data. The format maps to the Accept
and Content-Type
headers of the HTTP request. You can specify one of the following: or the default .
-
application/json
— standard JSON format -
application/x-amzn-ion
— the Amazon Ion data format. For more information, see Amazon Ion.
sourcepub fn set_accept(self, input: Option<String>) -> Self
pub fn set_accept(self, input: Option<String>) -> Self
The format of the returned profiling data. The format maps to the Accept
and Content-Type
headers of the HTTP request. You can specify one of the following: or the default .
-
application/json
— standard JSON format -
application/x-amzn-ion
— the Amazon Ion data format. For more information, see Amazon Ion.
sourcepub fn build(self) -> Result<GetProfileInput, BuildError>
pub fn build(self) -> Result<GetProfileInput, BuildError>
Consumes the builder and constructs a GetProfileInput
.