/*
 * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.workdocs.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeActivities" target="_top">AWS API
 *      Documentation</a>
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeActivitiesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * <p>
     * Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to
     * access the API.
     * </p>
     */
    private String authenticationToken;
    /**
     * <p>
     * The timestamp that determines the starting time of the activities. The response includes the activities performed
     * after the specified timestamp.
     * </p>
     */
    private java.util.Date startTime;
    /**
     * <p>
     * The timestamp that determines the end time of the activities. The response includes the activities performed
     * before the specified timestamp.
     * </p>
     */
    private java.util.Date endTime;
    /**
     * <p>
     * The ID of the organization. This is a mandatory parameter when using administrative API (SigV4) requests.
     * </p>
     */
    private String organizationId;
    /**
     * <p>
     * Specifies which activity types to include in the response. If this field is left empty, all activity types are
     * returned.
     * </p>
     */
    private String activityTypes;
    /**
     * <p>
     * The document or folder ID for which to describe activity types.
     * </p>
     */
    private String resourceId;
    /**
     * <p>
     * The ID of the user who performed the action. The response includes activities pertaining to this user. This is an
     * optional parameter and is only applicable for administrative API (SigV4) requests.
     * </p>
     */
    private String userId;
    /**
     * <p>
     * Includes indirect activities. 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).
     * </p>
     */
    private Boolean includeIndirectActivities;
    /**
     * <p>
     * The maximum number of items to return.
     * </p>
     */
    private Integer limit;
    /**
     * <p>
     * The marker for the next set of results.
     * </p>
     */
    private String marker;

    /**
     * <p>
     * Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to
     * access the API.
     * </p>
     * 
     * @param authenticationToken
     *        Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator
     *        credentials to access the API.
     */

    public void setAuthenticationToken(String authenticationToken) {
        this.authenticationToken = authenticationToken;
    }

    /**
     * <p>
     * Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to
     * access the API.
     * </p>
     * 
     * @return Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator
     *         credentials to access the API.
     */

    public String getAuthenticationToken() {
        return this.authenticationToken;
    }

    /**
     * <p>
     * Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to
     * access the API.
     * </p>
     * 
     * @param authenticationToken
     *        Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator
     *        credentials to access the API.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DescribeActivitiesRequest withAuthenticationToken(String authenticationToken) {
        setAuthenticationToken(authenticationToken);
        return this;
    }

    /**
     * <p>
     * The timestamp that determines the starting time of the activities. The response includes the activities performed
     * after the specified timestamp.
     * </p>
     * 
     * @param startTime
     *        The timestamp that determines the starting time of the activities. The response includes the activities
     *        performed after the specified timestamp.
     */

    public void setStartTime(java.util.Date startTime) {
        this.startTime = startTime;
    }

    /**
     * <p>
     * The timestamp that determines the starting time of the activities. The response includes the activities performed
     * after the specified timestamp.
     * </p>
     * 
     * @return The timestamp that determines the starting time of the activities. The response includes the activities
     *         performed after the specified timestamp.
     */

    public java.util.Date getStartTime() {
        return this.startTime;
    }

    /**
     * <p>
     * The timestamp that determines the starting time of the activities. The response includes the activities performed
     * after the specified timestamp.
     * </p>
     * 
     * @param startTime
     *        The timestamp that determines the starting time of the activities. The response includes the activities
     *        performed after the specified timestamp.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DescribeActivitiesRequest withStartTime(java.util.Date startTime) {
        setStartTime(startTime);
        return this;
    }

    /**
     * <p>
     * The timestamp that determines the end time of the activities. The response includes the activities performed
     * before the specified timestamp.
     * </p>
     * 
     * @param endTime
     *        The timestamp that determines the end time of the activities. The response includes the activities
     *        performed before the specified timestamp.
     */

    public void setEndTime(java.util.Date endTime) {
        this.endTime = endTime;
    }

    /**
     * <p>
     * The timestamp that determines the end time of the activities. The response includes the activities performed
     * before the specified timestamp.
     * </p>
     * 
     * @return The timestamp that determines the end time of the activities. The response includes the activities
     *         performed before the specified timestamp.
     */

    public java.util.Date getEndTime() {
        return this.endTime;
    }

    /**
     * <p>
     * The timestamp that determines the end time of the activities. The response includes the activities performed
     * before the specified timestamp.
     * </p>
     * 
     * @param endTime
     *        The timestamp that determines the end time of the activities. The response includes the activities
     *        performed before the specified timestamp.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DescribeActivitiesRequest withEndTime(java.util.Date endTime) {
        setEndTime(endTime);
        return this;
    }

    /**
     * <p>
     * The ID of the organization. This is a mandatory parameter when using administrative API (SigV4) requests.
     * </p>
     * 
     * @param organizationId
     *        The ID of the organization. This is a mandatory parameter when using administrative API (SigV4) requests.
     */

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    /**
     * <p>
     * The ID of the organization. This is a mandatory parameter when using administrative API (SigV4) requests.
     * </p>
     * 
     * @return The ID of the organization. This is a mandatory parameter when using administrative API (SigV4) requests.
     */

    public String getOrganizationId() {
        return this.organizationId;
    }

    /**
     * <p>
     * The ID of the organization. This is a mandatory parameter when using administrative API (SigV4) requests.
     * </p>
     * 
     * @param organizationId
     *        The ID of the organization. This is a mandatory parameter when using administrative API (SigV4) requests.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DescribeActivitiesRequest withOrganizationId(String organizationId) {
        setOrganizationId(organizationId);
        return this;
    }

    /**
     * <p>
     * Specifies which activity types to include in the response. If this field is left empty, all activity types are
     * returned.
     * </p>
     * 
     * @param activityTypes
     *        Specifies which activity types to include in the response. If this field is left empty, all activity types
     *        are returned.
     */

    public void setActivityTypes(String activityTypes) {
        this.activityTypes = activityTypes;
    }

    /**
     * <p>
     * Specifies which activity types to include in the response. If this field is left empty, all activity types are
     * returned.
     * </p>
     * 
     * @return Specifies which activity types to include in the response. If this field is left empty, all activity
     *         types are returned.
     */

    public String getActivityTypes() {
        return this.activityTypes;
    }

    /**
     * <p>
     * Specifies which activity types to include in the response. If this field is left empty, all activity types are
     * returned.
     * </p>
     * 
     * @param activityTypes
     *        Specifies which activity types to include in the response. If this field is left empty, all activity types
     *        are returned.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DescribeActivitiesRequest withActivityTypes(String activityTypes) {
        setActivityTypes(activityTypes);
        return this;
    }

    /**
     * <p>
     * The document or folder ID for which to describe activity types.
     * </p>
     * 
     * @param resourceId
     *        The document or folder ID for which to describe activity types.
     */

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    /**
     * <p>
     * The document or folder ID for which to describe activity types.
     * </p>
     * 
     * @return The document or folder ID for which to describe activity types.
     */

    public String getResourceId() {
        return this.resourceId;
    }

    /**
     * <p>
     * The document or folder ID for which to describe activity types.
     * </p>
     * 
     * @param resourceId
     *        The document or folder ID for which to describe activity types.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DescribeActivitiesRequest withResourceId(String resourceId) {
        setResourceId(resourceId);
        return this;
    }

    /**
     * <p>
     * The ID of the user who performed the action. The response includes activities pertaining to this user. This is an
     * optional parameter and is only applicable for administrative API (SigV4) requests.
     * </p>
     * 
     * @param userId
     *        The ID of the user who performed the action. The response includes activities pertaining to this user.
     *        This is an optional parameter and is only applicable for administrative API (SigV4) requests.
     */

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * <p>
     * The ID of the user who performed the action. The response includes activities pertaining to this user. This is an
     * optional parameter and is only applicable for administrative API (SigV4) requests.
     * </p>
     * 
     * @return The ID of the user who performed the action. The response includes activities pertaining to this user.
     *         This is an optional parameter and is only applicable for administrative API (SigV4) requests.
     */

    public String getUserId() {
        return this.userId;
    }

    /**
     * <p>
     * The ID of the user who performed the action. The response includes activities pertaining to this user. This is an
     * optional parameter and is only applicable for administrative API (SigV4) requests.
     * </p>
     * 
     * @param userId
     *        The ID of the user who performed the action. The response includes activities pertaining to this user.
     *        This is an optional parameter and is only applicable for administrative API (SigV4) requests.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DescribeActivitiesRequest withUserId(String userId) {
        setUserId(userId);
        return this;
    }

    /**
     * <p>
     * Includes indirect activities. 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).
     * </p>
     * 
     * @param includeIndirectActivities
     *        Includes indirect activities. 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 void setIncludeIndirectActivities(Boolean includeIndirectActivities) {
        this.includeIndirectActivities = includeIndirectActivities;
    }

    /**
     * <p>
     * Includes indirect activities. 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).
     * </p>
     * 
     * @return Includes indirect activities. 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 Boolean getIncludeIndirectActivities() {
        return this.includeIndirectActivities;
    }

    /**
     * <p>
     * Includes indirect activities. 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).
     * </p>
     * 
     * @param includeIndirectActivities
     *        Includes indirect activities. 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).
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DescribeActivitiesRequest withIncludeIndirectActivities(Boolean includeIndirectActivities) {
        setIncludeIndirectActivities(includeIndirectActivities);
        return this;
    }

    /**
     * <p>
     * Includes indirect activities. 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).
     * </p>
     * 
     * @return Includes indirect activities. 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 Boolean isIncludeIndirectActivities() {
        return this.includeIndirectActivities;
    }

    /**
     * <p>
     * The maximum number of items to return.
     * </p>
     * 
     * @param limit
     *        The maximum number of items to return.
     */

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    /**
     * <p>
     * The maximum number of items to return.
     * </p>
     * 
     * @return The maximum number of items to return.
     */

    public Integer getLimit() {
        return this.limit;
    }

    /**
     * <p>
     * The maximum number of items to return.
     * </p>
     * 
     * @param limit
     *        The maximum number of items to return.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DescribeActivitiesRequest withLimit(Integer limit) {
        setLimit(limit);
        return this;
    }

    /**
     * <p>
     * The marker for the next set of results.
     * </p>
     * 
     * @param marker
     *        The marker for the next set of results.
     */

    public void setMarker(String marker) {
        this.marker = marker;
    }

    /**
     * <p>
     * The marker for the next set of results.
     * </p>
     * 
     * @return The marker for the next set of results.
     */

    public String getMarker() {
        return this.marker;
    }

    /**
     * <p>
     * The marker for the next set of results.
     * </p>
     * 
     * @param marker
     *        The marker for the next set of results.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DescribeActivitiesRequest withMarker(String marker) {
        setMarker(marker);
        return this;
    }

    /**
     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
     * redacted from this string using a placeholder value.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getAuthenticationToken() != null)
            sb.append("AuthenticationToken: ").append("***Sensitive Data Redacted***").append(",");
        if (getStartTime() != null)
            sb.append("StartTime: ").append(getStartTime()).append(",");
        if (getEndTime() != null)
            sb.append("EndTime: ").append(getEndTime()).append(",");
        if (getOrganizationId() != null)
            sb.append("OrganizationId: ").append(getOrganizationId()).append(",");
        if (getActivityTypes() != null)
            sb.append("ActivityTypes: ").append(getActivityTypes()).append(",");
        if (getResourceId() != null)
            sb.append("ResourceId: ").append(getResourceId()).append(",");
        if (getUserId() != null)
            sb.append("UserId: ").append(getUserId()).append(",");
        if (getIncludeIndirectActivities() != null)
            sb.append("IncludeIndirectActivities: ").append(getIncludeIndirectActivities()).append(",");
        if (getLimit() != null)
            sb.append("Limit: ").append(getLimit()).append(",");
        if (getMarker() != null)
            sb.append("Marker: ").append(getMarker());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof DescribeActivitiesRequest == false)
            return false;
        DescribeActivitiesRequest other = (DescribeActivitiesRequest) obj;
        if (other.getAuthenticationToken() == null ^ this.getAuthenticationToken() == null)
            return false;
        if (other.getAuthenticationToken() != null && other.getAuthenticationToken().equals(this.getAuthenticationToken()) == false)
            return false;
        if (other.getStartTime() == null ^ this.getStartTime() == null)
            return false;
        if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false)
            return false;
        if (other.getEndTime() == null ^ this.getEndTime() == null)
            return false;
        if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false)
            return false;
        if (other.getOrganizationId() == null ^ this.getOrganizationId() == null)
            return false;
        if (other.getOrganizationId() != null && other.getOrganizationId().equals(this.getOrganizationId()) == false)
            return false;
        if (other.getActivityTypes() == null ^ this.getActivityTypes() == null)
            return false;
        if (other.getActivityTypes() != null && other.getActivityTypes().equals(this.getActivityTypes()) == false)
            return false;
        if (other.getResourceId() == null ^ this.getResourceId() == null)
            return false;
        if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == false)
            return false;
        if (other.getUserId() == null ^ this.getUserId() == null)
            return false;
        if (other.getUserId() != null && other.getUserId().equals(this.getUserId()) == false)
            return false;
        if (other.getIncludeIndirectActivities() == null ^ this.getIncludeIndirectActivities() == null)
            return false;
        if (other.getIncludeIndirectActivities() != null && other.getIncludeIndirectActivities().equals(this.getIncludeIndirectActivities()) == false)
            return false;
        if (other.getLimit() == null ^ this.getLimit() == null)
            return false;
        if (other.getLimit() != null && other.getLimit().equals(this.getLimit()) == false)
            return false;
        if (other.getMarker() == null ^ this.getMarker() == null)
            return false;
        if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getAuthenticationToken() == null) ? 0 : getAuthenticationToken().hashCode());
        hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
        hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
        hashCode = prime * hashCode + ((getOrganizationId() == null) ? 0 : getOrganizationId().hashCode());
        hashCode = prime * hashCode + ((getActivityTypes() == null) ? 0 : getActivityTypes().hashCode());
        hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode());
        hashCode = prime * hashCode + ((getUserId() == null) ? 0 : getUserId().hashCode());
        hashCode = prime * hashCode + ((getIncludeIndirectActivities() == null) ? 0 : getIncludeIndirectActivities().hashCode());
        hashCode = prime * hashCode + ((getLimit() == null) ? 0 : getLimit().hashCode());
        hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode());
        return hashCode;
    }

    @Override
    public DescribeActivitiesRequest clone() {
        return (DescribeActivitiesRequest) super.clone();
    }

}
