Interface PutInsightSelectorsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudTrailResponse.Builder,CopyableBuilder<PutInsightSelectorsResponse.Builder,,PutInsightSelectorsResponse> SdkBuilder<PutInsightSelectorsResponse.Builder,,PutInsightSelectorsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
PutInsightSelectorsResponse
-
Method Summary
Modifier and TypeMethodDescriptioneventDataStoreArn(String eventDataStoreArn) The Amazon Resource Name (ARN) of the source event data store for which you want to change or add Insights selectors.insightsDestination(String insightsDestination) The ARN of the destination event data store that logs Insights events.insightSelectors(Collection<InsightSelector> insightSelectors) Contains the Insights types you want to log on a specific category of events in a trail or event data store.insightSelectors(Consumer<InsightSelector.Builder>... insightSelectors) Contains the Insights types you want to log on a specific category of events in a trail or event data store.insightSelectors(InsightSelector... insightSelectors) Contains the Insights types you want to log on a specific category of events in a trail or event data store.The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors.Methods inherited from interface software.amazon.awssdk.services.cloudtrail.model.CloudTrailResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
trailARN
The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors.
- Parameters:
trailARN- The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
insightSelectors
Contains the Insights types you want to log on a specific category of events in a trail or event data store.
ApiCallRateInsightandApiErrorRateInsightare valid Insight types.The EventCategory field can specifyManagementorDataevents or both. For event data store, you can only log Insights for management events only.- Parameters:
insightSelectors- Contains the Insights types you want to log on a specific category of events in a trail or event data store.ApiCallRateInsightandApiErrorRateInsightare valid Insight types.The EventCategory field can specifyManagementorDataevents or both. For event data store, you can only 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 you want to log on a specific category of events in a trail or event data store.
ApiCallRateInsightandApiErrorRateInsightare valid Insight types.The EventCategory field can specifyManagementorDataevents or both. For event data store, you can only log Insights for management events only.- Parameters:
insightSelectors- Contains the Insights types you want to log on a specific category of events in a trail or event data store.ApiCallRateInsightandApiErrorRateInsightare valid Insight types.The EventCategory field can specifyManagementorDataevents or both. For event data store, you can only log Insights for management events only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
insightSelectors
PutInsightSelectorsResponse.Builder insightSelectors(Consumer<InsightSelector.Builder>... insightSelectors) Contains the Insights types you want to log on a specific category of events in a trail or event data store.
This is a convenience method that creates an instance of theApiCallRateInsightandApiErrorRateInsightare valid Insight types.The EventCategory field can specifyManagementorDataevents or both. For event data store, you can only log Insights for management events only.InsightSelector.Builderavoiding the need to create one manually viaInsightSelector.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinsightSelectors(List<InsightSelector>).- Parameters:
insightSelectors- a consumer that will call methods onInsightSelector.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventDataStoreArn
The Amazon Resource Name (ARN) of the source event data store for which you want to change or add Insights selectors.
- Parameters:
eventDataStoreArn- The Amazon Resource Name (ARN) of the source event data store for which you want to change or add Insights selectors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-