@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AdvancedEventSelector extends Object implements Serializable, Cloneable, StructuredPojo
Advanced event selectors let you create fine-grained selectors for the following CloudTrail event record fields. They help you control costs by logging only those events that are important to you. For more information about advanced event selectors, see Logging data events for trails in the CloudTrail User Guide.
readOnly
eventSource
eventName
eventCategory
resources.type
resources.ARN
You cannot apply both event selectors and advanced event selectors to a trail.
Constructor and Description |
---|
AdvancedEventSelector() |
Modifier and Type | Method and Description |
---|---|
AdvancedEventSelector |
clone() |
boolean |
equals(Object obj) |
List<AdvancedFieldSelector> |
getFieldSelectors()
Contains all selector statements in an advanced event selector.
|
String |
getName()
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFieldSelectors(Collection<AdvancedFieldSelector> fieldSelectors)
Contains all selector statements in an advanced event selector.
|
void |
setName(String name)
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
|
String |
toString()
Returns a string representation of this object.
|
AdvancedEventSelector |
withFieldSelectors(AdvancedFieldSelector... fieldSelectors)
Contains all selector statements in an advanced event selector.
|
AdvancedEventSelector |
withFieldSelectors(Collection<AdvancedFieldSelector> fieldSelectors)
Contains all selector statements in an advanced event selector.
|
AdvancedEventSelector |
withName(String name)
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
|
public void setName(String name)
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
name
- An optional, descriptive name for an advanced event selector, such as
"Log data events for only two S3 buckets".public String getName()
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
public AdvancedEventSelector withName(String name)
An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
name
- An optional, descriptive name for an advanced event selector, such as
"Log data events for only two S3 buckets".public List<AdvancedFieldSelector> getFieldSelectors()
Contains all selector statements in an advanced event selector.
public void setFieldSelectors(Collection<AdvancedFieldSelector> fieldSelectors)
Contains all selector statements in an advanced event selector.
fieldSelectors
- Contains all selector statements in an advanced event selector.public AdvancedEventSelector withFieldSelectors(AdvancedFieldSelector... fieldSelectors)
Contains all selector statements in an advanced event selector.
NOTE: This method appends the values to the existing list (if any). Use
setFieldSelectors(java.util.Collection)
or withFieldSelectors(java.util.Collection)
if you want
to override the existing values.
fieldSelectors
- Contains all selector statements in an advanced event selector.public AdvancedEventSelector withFieldSelectors(Collection<AdvancedFieldSelector> fieldSelectors)
Contains all selector statements in an advanced event selector.
fieldSelectors
- Contains all selector statements in an advanced event selector.public String toString()
toString
in class Object
Object.toString()
public AdvancedEventSelector clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.