@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccountSources extends Object implements Serializable, Cloneable, StructuredPojo
Amazon Security Lake collects logs and events from supported Amazon Web Services and custom sources. For the list of supported Amazon Web Services, see the Amazon Security Lake User Guide.
Constructor and Description |
---|
AccountSources() |
Modifier and Type | Method and Description |
---|---|
AccountSources |
clone() |
boolean |
equals(Object obj) |
String |
getAccount()
The ID of the Security Lake account for which logs are collected.
|
String |
getEventClass()
Initializes a new instance of the Event class.
|
List<LogsStatus> |
getLogsStatus()
The log status for the Security Lake account.
|
String |
getSourceType()
The supported Amazon Web Services from which logs and events are collected.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccount(String account)
The ID of the Security Lake account for which logs are collected.
|
void |
setEventClass(String eventClass)
Initializes a new instance of the Event class.
|
void |
setLogsStatus(Collection<LogsStatus> logsStatus)
The log status for the Security Lake account.
|
void |
setSourceType(String sourceType)
The supported Amazon Web Services from which logs and events are collected.
|
String |
toString()
Returns a string representation of this object.
|
AccountSources |
withAccount(String account)
The ID of the Security Lake account for which logs are collected.
|
AccountSources |
withEventClass(OcsfEventClass eventClass)
Initializes a new instance of the Event class.
|
AccountSources |
withEventClass(String eventClass)
Initializes a new instance of the Event class.
|
AccountSources |
withLogsStatus(Collection<LogsStatus> logsStatus)
The log status for the Security Lake account.
|
AccountSources |
withLogsStatus(LogsStatus... logsStatus)
The log status for the Security Lake account.
|
AccountSources |
withSourceType(String sourceType)
The supported Amazon Web Services from which logs and events are collected.
|
public void setAccount(String account)
The ID of the Security Lake account for which logs are collected.
account
- The ID of the Security Lake account for which logs are collected.public String getAccount()
The ID of the Security Lake account for which logs are collected.
public AccountSources withAccount(String account)
The ID of the Security Lake account for which logs are collected.
account
- The ID of the Security Lake account for which logs are collected.public void setEventClass(String eventClass)
Initializes a new instance of the Event class.
eventClass
- Initializes a new instance of the Event class.OcsfEventClass
public String getEventClass()
Initializes a new instance of the Event class.
OcsfEventClass
public AccountSources withEventClass(String eventClass)
Initializes a new instance of the Event class.
eventClass
- Initializes a new instance of the Event class.OcsfEventClass
public AccountSources withEventClass(OcsfEventClass eventClass)
Initializes a new instance of the Event class.
eventClass
- Initializes a new instance of the Event class.OcsfEventClass
public List<LogsStatus> getLogsStatus()
The log status for the Security Lake account.
public void setLogsStatus(Collection<LogsStatus> logsStatus)
The log status for the Security Lake account.
logsStatus
- The log status for the Security Lake account.public AccountSources withLogsStatus(LogsStatus... logsStatus)
The log status for the Security Lake account.
NOTE: This method appends the values to the existing list (if any). Use
setLogsStatus(java.util.Collection)
or withLogsStatus(java.util.Collection)
if you want to
override the existing values.
logsStatus
- The log status for the Security Lake account.public AccountSources withLogsStatus(Collection<LogsStatus> logsStatus)
The log status for the Security Lake account.
logsStatus
- The log status for the Security Lake account.public void setSourceType(String sourceType)
The supported Amazon Web Services from which logs and events are collected. Amazon Security Lake supports log and event collection for natively supported Amazon Web Services.
sourceType
- The supported Amazon Web Services from which logs and events are collected. Amazon Security Lake supports
log and event collection for natively supported Amazon Web Services.public String getSourceType()
The supported Amazon Web Services from which logs and events are collected. Amazon Security Lake supports log and event collection for natively supported Amazon Web Services.
public AccountSources withSourceType(String sourceType)
The supported Amazon Web Services from which logs and events are collected. Amazon Security Lake supports log and event collection for natively supported Amazon Web Services.
sourceType
- The supported Amazon Web Services from which logs and events are collected. Amazon Security Lake supports
log and event collection for natively supported Amazon Web Services.public String toString()
toString
in class Object
Object.toString()
public AccountSources clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.