Interface SetV2LoggingOptionsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SetV2LoggingOptionsRequest.Builder,,SetV2LoggingOptionsRequest> IotRequest.Builder,SdkBuilder<SetV2LoggingOptionsRequest.Builder,,SetV2LoggingOptionsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
SetV2LoggingOptionsRequest
@Mutable
@NotThreadSafe
public static interface SetV2LoggingOptionsRequest.Builder
extends IotRequest.Builder, SdkPojo, CopyableBuilder<SetV2LoggingOptionsRequest.Builder,SetV2LoggingOptionsRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondefaultLogLevel(String defaultLogLevel) The default logging level.defaultLogLevel(LogLevel defaultLogLevel) The default logging level.disableAllLogs(Boolean disableAllLogs) If true all logs are disabled.eventConfigurations(Collection<LogEventConfiguration> eventConfigurations) The list of event configurations that override account-level logging.eventConfigurations(Consumer<LogEventConfiguration.Builder>... eventConfigurations) The list of event configurations that override account-level logging.eventConfigurations(LogEventConfiguration... eventConfigurations) The list of event configurations that override account-level logging.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The ARN of the role that allows IoT to write to Cloudwatch logs.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iot.model.IotRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
roleArn
The ARN of the role that allows IoT to write to Cloudwatch logs.
- Parameters:
roleArn- The ARN of the role that allows IoT to write to Cloudwatch logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultLogLevel
The default logging level.
- Parameters:
defaultLogLevel- The default logging level.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
defaultLogLevel
The default logging level.
- Parameters:
defaultLogLevel- The default logging level.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
disableAllLogs
If true all logs are disabled. The default is false.
- Parameters:
disableAllLogs- If true all logs are disabled. The default is false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventConfigurations
SetV2LoggingOptionsRequest.Builder eventConfigurations(Collection<LogEventConfiguration> eventConfigurations) The list of event configurations that override account-level logging.
- Parameters:
eventConfigurations- The list of event configurations that override account-level logging.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventConfigurations
SetV2LoggingOptionsRequest.Builder eventConfigurations(LogEventConfiguration... eventConfigurations) The list of event configurations that override account-level logging.
- Parameters:
eventConfigurations- The list of event configurations that override account-level logging.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventConfigurations
SetV2LoggingOptionsRequest.Builder eventConfigurations(Consumer<LogEventConfiguration.Builder>... eventConfigurations) The list of event configurations that override account-level logging.
This is a convenience method that creates an instance of theLogEventConfiguration.Builderavoiding the need to create one manually viaLogEventConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeventConfigurations(List<LogEventConfiguration>).- Parameters:
eventConfigurations- a consumer that will call methods onLogEventConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
SetV2LoggingOptionsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SetV2LoggingOptionsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-