@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateEventDataStoreRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateEventDataStoreRequest() |
Modifier and Type | Method and Description |
---|---|
CreateEventDataStoreRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<AdvancedEventSelector> |
getAdvancedEventSelectors()
The advanced event selectors to use to select the events for the data store.
|
Boolean |
getMultiRegionEnabled()
Specifies whether the event data store includes events from all regions, or only from the region in which the
event data store is created.
|
String |
getName()
The name of the event data store.
|
Boolean |
getOrganizationEnabled()
Specifies whether an event data store collects events logged for an organization in Organizations.
|
Integer |
getRetentionPeriod()
The retention period of the event data store, in days.
|
List<Tag> |
getTagsList() |
Boolean |
getTerminationProtectionEnabled()
Specifies whether termination protection is enabled for the event data store.
|
int |
hashCode() |
Boolean |
isMultiRegionEnabled()
Specifies whether the event data store includes events from all regions, or only from the region in which the
event data store is created.
|
Boolean |
isOrganizationEnabled()
Specifies whether an event data store collects events logged for an organization in Organizations.
|
Boolean |
isTerminationProtectionEnabled()
Specifies whether termination protection is enabled for the event data store.
|
void |
setAdvancedEventSelectors(Collection<AdvancedEventSelector> advancedEventSelectors)
The advanced event selectors to use to select the events for the data store.
|
void |
setMultiRegionEnabled(Boolean multiRegionEnabled)
Specifies whether the event data store includes events from all regions, or only from the region in which the
event data store is created.
|
void |
setName(String name)
The name of the event data store.
|
void |
setOrganizationEnabled(Boolean organizationEnabled)
Specifies whether an event data store collects events logged for an organization in Organizations.
|
void |
setRetentionPeriod(Integer retentionPeriod)
The retention period of the event data store, in days.
|
void |
setTagsList(Collection<Tag> tagsList) |
void |
setTerminationProtectionEnabled(Boolean terminationProtectionEnabled)
Specifies whether termination protection is enabled for the event data store.
|
String |
toString()
Returns a string representation of this object.
|
CreateEventDataStoreRequest |
withAdvancedEventSelectors(AdvancedEventSelector... advancedEventSelectors)
The advanced event selectors to use to select the events for the data store.
|
CreateEventDataStoreRequest |
withAdvancedEventSelectors(Collection<AdvancedEventSelector> advancedEventSelectors)
The advanced event selectors to use to select the events for the data store.
|
CreateEventDataStoreRequest |
withMultiRegionEnabled(Boolean multiRegionEnabled)
Specifies whether the event data store includes events from all regions, or only from the region in which the
event data store is created.
|
CreateEventDataStoreRequest |
withName(String name)
The name of the event data store.
|
CreateEventDataStoreRequest |
withOrganizationEnabled(Boolean organizationEnabled)
Specifies whether an event data store collects events logged for an organization in Organizations.
|
CreateEventDataStoreRequest |
withRetentionPeriod(Integer retentionPeriod)
The retention period of the event data store, in days.
|
CreateEventDataStoreRequest |
withTagsList(Collection<Tag> tagsList) |
CreateEventDataStoreRequest |
withTagsList(Tag... tagsList)
NOTE: This method appends the values to the existing list (if any).
|
CreateEventDataStoreRequest |
withTerminationProtectionEnabled(Boolean terminationProtectionEnabled)
Specifies whether termination protection is enabled for the event data store.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
The name of the event data store.
name
- The name of the event data store.public String getName()
The name of the event data store.
public CreateEventDataStoreRequest withName(String name)
The name of the event data store.
name
- The name of the event data store.public List<AdvancedEventSelector> getAdvancedEventSelectors()
The advanced event selectors to use to select the events for the data store. For more information about how to use advanced event selectors, see Log events by using advanced event selectors in the CloudTrail User Guide.
public void setAdvancedEventSelectors(Collection<AdvancedEventSelector> advancedEventSelectors)
The advanced event selectors to use to select the events for the data store. For more information about how to use advanced event selectors, see Log events by using advanced event selectors in the CloudTrail User Guide.
advancedEventSelectors
- The advanced event selectors to use to select the events for the data store. For more information about
how to use advanced event selectors, see Log events by using advanced event selectors in the CloudTrail User Guide.public CreateEventDataStoreRequest withAdvancedEventSelectors(AdvancedEventSelector... advancedEventSelectors)
The advanced event selectors to use to select the events for the data store. For more information about how to use advanced event selectors, see Log events by using advanced event selectors in the CloudTrail User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setAdvancedEventSelectors(java.util.Collection)
or
withAdvancedEventSelectors(java.util.Collection)
if you want to override the existing values.
advancedEventSelectors
- The advanced event selectors to use to select the events for the data store. For more information about
how to use advanced event selectors, see Log events by using advanced event selectors in the CloudTrail User Guide.public CreateEventDataStoreRequest withAdvancedEventSelectors(Collection<AdvancedEventSelector> advancedEventSelectors)
The advanced event selectors to use to select the events for the data store. For more information about how to use advanced event selectors, see Log events by using advanced event selectors in the CloudTrail User Guide.
advancedEventSelectors
- The advanced event selectors to use to select the events for the data store. For more information about
how to use advanced event selectors, see Log events by using advanced event selectors in the CloudTrail User Guide.public void setMultiRegionEnabled(Boolean multiRegionEnabled)
Specifies whether the event data store includes events from all regions, or only from the region in which the event data store is created.
multiRegionEnabled
- Specifies whether the event data store includes events from all regions, or only from the region in which
the event data store is created.public Boolean getMultiRegionEnabled()
Specifies whether the event data store includes events from all regions, or only from the region in which the event data store is created.
public CreateEventDataStoreRequest withMultiRegionEnabled(Boolean multiRegionEnabled)
Specifies whether the event data store includes events from all regions, or only from the region in which the event data store is created.
multiRegionEnabled
- Specifies whether the event data store includes events from all regions, or only from the region in which
the event data store is created.public Boolean isMultiRegionEnabled()
Specifies whether the event data store includes events from all regions, or only from the region in which the event data store is created.
public void setOrganizationEnabled(Boolean organizationEnabled)
Specifies whether an event data store collects events logged for an organization in Organizations.
organizationEnabled
- Specifies whether an event data store collects events logged for an organization in Organizations.public Boolean getOrganizationEnabled()
Specifies whether an event data store collects events logged for an organization in Organizations.
public CreateEventDataStoreRequest withOrganizationEnabled(Boolean organizationEnabled)
Specifies whether an event data store collects events logged for an organization in Organizations.
organizationEnabled
- Specifies whether an event data store collects events logged for an organization in Organizations.public Boolean isOrganizationEnabled()
Specifies whether an event data store collects events logged for an organization in Organizations.
public void setRetentionPeriod(Integer retentionPeriod)
The retention period of the event data store, in days. You can set a retention period of up to 2555 days, the equivalent of seven years.
retentionPeriod
- The retention period of the event data store, in days. You can set a retention period of up to 2555 days,
the equivalent of seven years.public Integer getRetentionPeriod()
The retention period of the event data store, in days. You can set a retention period of up to 2555 days, the equivalent of seven years.
public CreateEventDataStoreRequest withRetentionPeriod(Integer retentionPeriod)
The retention period of the event data store, in days. You can set a retention period of up to 2555 days, the equivalent of seven years.
retentionPeriod
- The retention period of the event data store, in days. You can set a retention period of up to 2555 days,
the equivalent of seven years.public void setTerminationProtectionEnabled(Boolean terminationProtectionEnabled)
Specifies whether termination protection is enabled for the event data store. If termination protection is enabled, you cannot delete the event data store until termination protection is disabled.
terminationProtectionEnabled
- Specifies whether termination protection is enabled for the event data store. If termination protection is
enabled, you cannot delete the event data store until termination protection is disabled.public Boolean getTerminationProtectionEnabled()
Specifies whether termination protection is enabled for the event data store. If termination protection is enabled, you cannot delete the event data store until termination protection is disabled.
public CreateEventDataStoreRequest withTerminationProtectionEnabled(Boolean terminationProtectionEnabled)
Specifies whether termination protection is enabled for the event data store. If termination protection is enabled, you cannot delete the event data store until termination protection is disabled.
terminationProtectionEnabled
- Specifies whether termination protection is enabled for the event data store. If termination protection is
enabled, you cannot delete the event data store until termination protection is disabled.public Boolean isTerminationProtectionEnabled()
Specifies whether termination protection is enabled for the event data store. If termination protection is enabled, you cannot delete the event data store until termination protection is disabled.
public void setTagsList(Collection<Tag> tagsList)
tagsList
- public CreateEventDataStoreRequest withTagsList(Tag... tagsList)
NOTE: This method appends the values to the existing list (if any). Use
setTagsList(java.util.Collection)
or withTagsList(java.util.Collection)
if you want to override
the existing values.
tagsList
- public CreateEventDataStoreRequest withTagsList(Collection<Tag> tagsList)
tagsList
- public String toString()
toString
in class Object
Object.toString()
public CreateEventDataStoreRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()