@Generated(value="software.amazon.awssdk:codegen") public final class Activity extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Activity.Builder,Activity>
Describes the activity information.
Modifier and Type | Class and Description |
---|---|
static interface |
Activity.Builder |
Modifier and Type | Method and Description |
---|---|
static Activity.Builder |
builder() |
CommentMetadata |
commentMetadata()
Metadata of the commenting activity.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
UserMetadata |
initiator()
The user who performed the action.
|
Boolean |
isIndirectActivity()
Indicates whether an activity is indirect or direct.
|
String |
organizationId()
The ID of the organization.
|
ResourceMetadata |
originalParent()
The original parent of the resource.
|
Participants |
participants()
The list of users or groups impacted by this action.
|
ResourceMetadata |
resourceMetadata()
The metadata of the resource involved in the user action.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Activity.Builder> |
serializableBuilderClass() |
Instant |
timeStamp()
The timestamp when the action was performed.
|
Activity.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
ActivityType |
type()
The activity type.
|
String |
typeAsString()
The activity type.
|
copy
public ActivityType type()
The activity type.
If the service returns an enum value that is not available in the current SDK version, type
will return
ActivityType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
ActivityType
public String typeAsString()
The activity type.
If the service returns an enum value that is not available in the current SDK version, type
will return
ActivityType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
ActivityType
public Instant timeStamp()
The timestamp when the action was performed.
public Boolean isIndirectActivity()
Indicates whether an activity is indirect or direct. An indirect activity results from a direct activity performed on a parent resource. For example, sharing a parent folder (the direct activity) shares all of the subfolders and documents within the parent folder (the indirect activity).
public String organizationId()
The ID of the organization.
public UserMetadata initiator()
The user who performed the action.
public Participants participants()
The list of users or groups impacted by this action. This is an optional field and is filled for the following sharing activities: DOCUMENT_SHARED, DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.
public ResourceMetadata resourceMetadata()
The metadata of the resource involved in the user action.
public ResourceMetadata originalParent()
The original parent of the resource. This is an optional field and is filled for move activities.
public CommentMetadata commentMetadata()
Metadata of the commenting activity. This is an optional field and is filled for commenting activities.
public Activity.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Activity.Builder,Activity>
public static Activity.Builder builder()
public static Class<? extends Activity.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.