Interface GetInsightSelectorsResponse.Builder

  • Method Details

    • trailARN

      The Amazon Resource Name (ARN) of a trail for which you want to get Insights selectors.

      Parameters:
      trailARN - The Amazon Resource Name (ARN) of a trail for which you want to get Insights selectors.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • insightSelectors

      GetInsightSelectorsResponse.Builder insightSelectors(Collection<InsightSelector> insightSelectors)

      Contains the Insights types that are enabled on a trail or event data store. It also specifies the event categories on which a particular Insight type is enabled. ApiCallRateInsight and ApiErrorRateInsight are valid Insight types.The EventCategory field can specify Management or Data events or both. For event data store, you can log Insights for management events only.

      Parameters:
      insightSelectors - Contains the Insights types that are enabled on a trail or event data store. It also specifies the event categories on which a particular Insight type is enabled. ApiCallRateInsight and ApiErrorRateInsight are valid Insight types.The EventCategory field can specify Management or Data events or both. For event data store, you can log Insights for management events only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • insightSelectors

      GetInsightSelectorsResponse.Builder insightSelectors(InsightSelector... insightSelectors)

      Contains the Insights types that are enabled on a trail or event data store. It also specifies the event categories on which a particular Insight type is enabled. ApiCallRateInsight and ApiErrorRateInsight are valid Insight types.The EventCategory field can specify Management or Data events or both. For event data store, you can log Insights for management events only.

      Parameters:
      insightSelectors - Contains the Insights types that are enabled on a trail or event data store. It also specifies the event categories on which a particular Insight type is enabled. ApiCallRateInsight and ApiErrorRateInsight are valid Insight types.The EventCategory field can specify Management or Data events or both. For event data store, you can log Insights for management events only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • insightSelectors

      Contains the Insights types that are enabled on a trail or event data store. It also specifies the event categories on which a particular Insight type is enabled. ApiCallRateInsight and ApiErrorRateInsight are valid Insight types.The EventCategory field can specify Management or Data events or both. For event data store, you can log Insights for management events only.

      This is a convenience method that creates an instance of the InsightSelector.Builder avoiding the need to create one manually via InsightSelector.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to insightSelectors(List<InsightSelector>).

      Parameters:
      insightSelectors - a consumer that will call methods on InsightSelector.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • eventDataStoreArn

      GetInsightSelectorsResponse.Builder eventDataStoreArn(String eventDataStoreArn)

      The ARN of the source event data store that enabled Insights events.

      Parameters:
      eventDataStoreArn - The ARN of the source event data store that enabled Insights events.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • insightsDestination

      GetInsightSelectorsResponse.Builder insightsDestination(String insightsDestination)

      The ARN of the destination event data store that logs Insights events.

      Parameters:
      insightsDestination - The ARN of the destination event data store that logs Insights events.
      Returns:
      Returns a reference to this object so that method calls can be chained together.