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, withRequestMetricCollectorpublic 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.
LogLevelpublic void setDefaultLogLevel(java.lang.String defaultLogLevel)
The default logging level.
Constraints:
Allowed Values: DEBUG, INFO, ERROR, WARN, DISABLED
defaultLogLevel - The default logging level.
LogLevelpublic 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.
LogLevelpublic void setDefaultLogLevel(LogLevel defaultLogLevel)
The default logging level.
Constraints:
Allowed Values: DEBUG, INFO, ERROR, WARN, DISABLED
defaultLogLevel - The default logging level.
LogLevelpublic 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.
LogLevelpublic 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.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.