Class SetV2LoggingOptionsRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.iot.model.IotRequest
-
- software.amazon.awssdk.services.iot.model.SetV2LoggingOptionsRequest
-
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<SetV2LoggingOptionsRequest.Builder,SetV2LoggingOptionsRequest>
@Generated("software.amazon.awssdk:codegen") public final class SetV2LoggingOptionsRequest extends IotRequest implements ToCopyableBuilder<SetV2LoggingOptionsRequest.Builder,SetV2LoggingOptionsRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SetV2LoggingOptionsRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SetV2LoggingOptionsRequest.Builder
builder()
LogLevel
defaultLogLevel()
The default logging level.String
defaultLogLevelAsString()
The default logging level.Boolean
disableAllLogs()
If true all logs are disabled.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
roleArn()
The ARN of the role that allows IoT to write to Cloudwatch logs.List<SdkField<?>>
sdkFields()
static Class<? extends SetV2LoggingOptionsRequest.Builder>
serializableBuilderClass()
SetV2LoggingOptionsRequest.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
roleArn
public final String roleArn()
The ARN of the role that allows IoT to write to Cloudwatch logs.
- Returns:
- The ARN of the role that allows IoT to write to Cloudwatch logs.
-
defaultLogLevel
public final LogLevel defaultLogLevel()
The default logging level.
If the service returns an enum value that is not available in the current SDK version,
defaultLogLevel
will returnLogLevel.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromdefaultLogLevelAsString()
.- Returns:
- The default logging level.
- See Also:
LogLevel
-
defaultLogLevelAsString
public final String defaultLogLevelAsString()
The default logging level.
If the service returns an enum value that is not available in the current SDK version,
defaultLogLevel
will returnLogLevel.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromdefaultLogLevelAsString()
.- Returns:
- The default logging level.
- See Also:
LogLevel
-
disableAllLogs
public final Boolean disableAllLogs()
If true all logs are disabled. The default is false.
- Returns:
- If true all logs are disabled. The default is false.
-
toBuilder
public SetV2LoggingOptionsRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<SetV2LoggingOptionsRequest.Builder,SetV2LoggingOptionsRequest>
- Specified by:
toBuilder
in classIotRequest
-
builder
public static SetV2LoggingOptionsRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends SetV2LoggingOptionsRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForField
in classSdkRequest
-
-