@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LoggingOptions extends Object implements Serializable, Cloneable, StructuredPojo
Information about logging options.
Constructor and Description |
---|
LoggingOptions() |
Modifier and Type | Method and Description |
---|---|
LoggingOptions |
clone() |
boolean |
equals(Object obj) |
Boolean |
getEnabled()
If true, logging is enabled for IoT Analytics.
|
String |
getLevel()
The logging level.
|
String |
getRoleArn()
The ARN of the role that grants permission to IoT Analytics to perform logging.
|
int |
hashCode() |
Boolean |
isEnabled()
If true, logging is enabled for IoT Analytics.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEnabled(Boolean enabled)
If true, logging is enabled for IoT Analytics.
|
void |
setLevel(String level)
The logging level.
|
void |
setRoleArn(String roleArn)
The ARN of the role that grants permission to IoT Analytics to perform logging.
|
String |
toString()
Returns a string representation of this object.
|
LoggingOptions |
withEnabled(Boolean enabled)
If true, logging is enabled for IoT Analytics.
|
LoggingOptions |
withLevel(LoggingLevel level)
The logging level.
|
LoggingOptions |
withLevel(String level)
The logging level.
|
LoggingOptions |
withRoleArn(String roleArn)
The ARN of the role that grants permission to IoT Analytics to perform logging.
|
public void setRoleArn(String roleArn)
The ARN of the role that grants permission to IoT Analytics to perform logging.
roleArn
- The ARN of the role that grants permission to IoT Analytics to perform logging.public String getRoleArn()
The ARN of the role that grants permission to IoT Analytics to perform logging.
public LoggingOptions withRoleArn(String roleArn)
The ARN of the role that grants permission to IoT Analytics to perform logging.
roleArn
- The ARN of the role that grants permission to IoT Analytics to perform logging.public void setLevel(String level)
The logging level. Currently, only ERROR is supported.
level
- The logging level. Currently, only ERROR is supported.LoggingLevel
public String getLevel()
The logging level. Currently, only ERROR is supported.
LoggingLevel
public LoggingOptions withLevel(String level)
The logging level. Currently, only ERROR is supported.
level
- The logging level. Currently, only ERROR is supported.LoggingLevel
public LoggingOptions withLevel(LoggingLevel level)
The logging level. Currently, only ERROR is supported.
level
- The logging level. Currently, only ERROR is supported.LoggingLevel
public void setEnabled(Boolean enabled)
If true, logging is enabled for IoT Analytics.
enabled
- If true, logging is enabled for IoT Analytics.public Boolean getEnabled()
If true, logging is enabled for IoT Analytics.
public LoggingOptions withEnabled(Boolean enabled)
If true, logging is enabled for IoT Analytics.
enabled
- If true, logging is enabled for IoT Analytics.public Boolean isEnabled()
If true, logging is enabled for IoT Analytics.
public String toString()
toString
in class Object
Object.toString()
public LoggingOptions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.