Interface CampaignDateRangeKpiResponse.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CampaignDateRangeKpiResponse.Builder,CampaignDateRangeKpiResponse>,SdkBuilder<CampaignDateRangeKpiResponse.Builder,CampaignDateRangeKpiResponse>,SdkPojo
- Enclosing class:
- CampaignDateRangeKpiResponse
public static interface CampaignDateRangeKpiResponse.Builder extends SdkPojo, CopyableBuilder<CampaignDateRangeKpiResponse.Builder,CampaignDateRangeKpiResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CampaignDateRangeKpiResponse.BuilderapplicationId(String applicationId)The unique identifier for the application that the metric applies to.CampaignDateRangeKpiResponse.BuildercampaignId(String campaignId)The unique identifier for the campaign that the metric applies to.CampaignDateRangeKpiResponse.BuilderendTime(Instant endTime)The last date and time of the date range that was used to filter the query results, in extended ISO 8601 format.CampaignDateRangeKpiResponse.BuilderkpiName(String kpiName)The name of the metric, also referred to as a key performance indicator (KPI), that the data was retrieved for.default CampaignDateRangeKpiResponse.BuilderkpiResult(Consumer<BaseKpiResult.Builder> kpiResult)An array of objects that contains the results of the query.CampaignDateRangeKpiResponse.BuilderkpiResult(BaseKpiResult kpiResult)An array of objects that contains the results of the query.CampaignDateRangeKpiResponse.BuildernextToken(String nextToken)The string to use in a subsequent request to get the next page of results in a paginated response.CampaignDateRangeKpiResponse.BuilderstartTime(Instant startTime)The first date and time of the date range that was used to filter the query results, in extended ISO 8601 format.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
applicationId
CampaignDateRangeKpiResponse.Builder applicationId(String applicationId)
The unique identifier for the application that the metric applies to.
- Parameters:
applicationId- The unique identifier for the application that the metric applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
campaignId
CampaignDateRangeKpiResponse.Builder campaignId(String campaignId)
The unique identifier for the campaign that the metric applies to.
- Parameters:
campaignId- The unique identifier for the campaign that the metric applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
CampaignDateRangeKpiResponse.Builder endTime(Instant endTime)
The last date and time of the date range that was used to filter the query results, in extended ISO 8601 format. The date range is inclusive.
- Parameters:
endTime- The last date and time of the date range that was used to filter the query results, in extended ISO 8601 format. The date range is inclusive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kpiName
CampaignDateRangeKpiResponse.Builder kpiName(String kpiName)
The name of the metric, also referred to as a key performance indicator (KPI), that the data was retrieved for. This value describes the associated metric and consists of two or more terms, which are comprised of lowercase alphanumeric characters, separated by a hyphen. For a list of possible values, see the Amazon Pinpoint Developer Guide.
- Parameters:
kpiName- The name of the metric, also referred to as a key performance indicator (KPI), that the data was retrieved for. This value describes the associated metric and consists of two or more terms, which are comprised of lowercase alphanumeric characters, separated by a hyphen. For a list of possible values, see the Amazon Pinpoint Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kpiResult
CampaignDateRangeKpiResponse.Builder kpiResult(BaseKpiResult kpiResult)
An array of objects that contains the results of the query. Each object contains the value for the metric and metadata about that value.
- Parameters:
kpiResult- An array of objects that contains the results of the query. Each object contains the value for the metric and metadata about that value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kpiResult
default CampaignDateRangeKpiResponse.Builder kpiResult(Consumer<BaseKpiResult.Builder> kpiResult)
An array of objects that contains the results of the query. Each object contains the value for the metric and metadata about that value.
This is a convenience method that creates an instance of theBaseKpiResult.Builderavoiding the need to create one manually viaBaseKpiResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tokpiResult(BaseKpiResult).- Parameters:
kpiResult- a consumer that will call methods onBaseKpiResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
kpiResult(BaseKpiResult)
-
nextToken
CampaignDateRangeKpiResponse.Builder nextToken(String nextToken)
The string to use in a subsequent request to get the next page of results in a paginated response. This value is null for the Campaign Metrics resource because the resource returns all results in a single page.
- Parameters:
nextToken- The string to use in a subsequent request to get the next page of results in a paginated response. This value is null for the Campaign Metrics resource because the resource returns all results in a single page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
CampaignDateRangeKpiResponse.Builder startTime(Instant startTime)
The first date and time of the date range that was used to filter the query results, in extended ISO 8601 format. The date range is inclusive.
- Parameters:
startTime- The first date and time of the date range that was used to filter the query results, in extended ISO 8601 format. The date range is inclusive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-