public class SetV2LoggingOptionsRequest extends AmazonWebServiceRequest implements java.io.Serializable
Sets the logging options for the V2 logging service.
Constructor and Description |
---|
SetV2LoggingOptionsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDefaultLogLevel()
The default logging level.
|
java.lang.Boolean |
getDisableAllLogs()
If true all logs are disabled.
|
java.lang.String |
getRoleArn()
The ARN of the role that allows IoT to write to Cloudwatch logs.
|
int |
hashCode() |
java.lang.Boolean |
isDisableAllLogs()
If true all logs are disabled.
|
void |
setDefaultLogLevel(LogLevel defaultLogLevel)
The default logging level.
|
void |
setDefaultLogLevel(java.lang.String defaultLogLevel)
The default logging level.
|
void |
setDisableAllLogs(java.lang.Boolean disableAllLogs)
If true all logs are disabled.
|
void |
setRoleArn(java.lang.String roleArn)
The ARN of the role that allows IoT to write to Cloudwatch logs.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetV2LoggingOptionsRequest |
withDefaultLogLevel(LogLevel defaultLogLevel)
The default logging level.
|
SetV2LoggingOptionsRequest |
withDefaultLogLevel(java.lang.String defaultLogLevel)
The default logging level.
|
SetV2LoggingOptionsRequest |
withDisableAllLogs(java.lang.Boolean disableAllLogs)
If true all logs are disabled.
|
SetV2LoggingOptionsRequest |
withRoleArn(java.lang.String roleArn)
The ARN of the role that allows IoT to write to Cloudwatch logs.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getRoleArn()
The ARN of the role that allows IoT to write to Cloudwatch logs.
The ARN of the role that allows IoT to write to Cloudwatch logs.
public void setRoleArn(java.lang.String roleArn)
The ARN of the role that allows IoT to write to Cloudwatch logs.
roleArn
- The ARN of the role that allows IoT to write to Cloudwatch logs.
public SetV2LoggingOptionsRequest withRoleArn(java.lang.String roleArn)
The ARN of the role that allows IoT to write to Cloudwatch logs.
Returns a reference to this object so that method calls can be chained together.
roleArn
- The ARN of the role that allows IoT to write to Cloudwatch logs.
public java.lang.String getDefaultLogLevel()
The default logging level.
Constraints:
Allowed Values: DEBUG, INFO, ERROR, WARN, DISABLED
The default logging level.
LogLevel
public void setDefaultLogLevel(java.lang.String defaultLogLevel)
The default logging level.
Constraints:
Allowed Values: DEBUG, INFO, ERROR, WARN, DISABLED
defaultLogLevel
- The default logging level.
LogLevel
public SetV2LoggingOptionsRequest withDefaultLogLevel(java.lang.String defaultLogLevel)
The default logging level.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: DEBUG, INFO, ERROR, WARN, DISABLED
defaultLogLevel
- The default logging level.
LogLevel
public void setDefaultLogLevel(LogLevel defaultLogLevel)
The default logging level.
Constraints:
Allowed Values: DEBUG, INFO, ERROR, WARN, DISABLED
defaultLogLevel
- The default logging level.
LogLevel
public SetV2LoggingOptionsRequest withDefaultLogLevel(LogLevel defaultLogLevel)
The default logging level.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: DEBUG, INFO, ERROR, WARN, DISABLED
defaultLogLevel
- The default logging level.
LogLevel
public java.lang.Boolean isDisableAllLogs()
If true all logs are disabled. The default is false.
If true all logs are disabled. The default is false.
public java.lang.Boolean getDisableAllLogs()
If true all logs are disabled. The default is false.
If true all logs are disabled. The default is false.
public void setDisableAllLogs(java.lang.Boolean disableAllLogs)
If true all logs are disabled. The default is false.
disableAllLogs
- If true all logs are disabled. The default is false.
public SetV2LoggingOptionsRequest withDisableAllLogs(java.lang.Boolean disableAllLogs)
If true all logs are disabled. The default is false.
Returns a reference to this object so that method calls can be chained together.
disableAllLogs
- If true all logs are disabled. The default is false.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.