Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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.cognitosync.model;
 

The output for the GetBulkPublishDetails operation.

 
 public class GetBulkPublishDetailsResult implements SerializableCloneable {

    
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.

Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+

 
     private String identityPoolId;

    
The date/time at which the last bulk publish was initiated.
 
     private java.util.Date bulkPublishStartTime;

    
If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation completed.
 
     private java.util.Date bulkPublishCompleteTime;

    
Status of the last bulk publish operation, valid values are:

NOT_STARTED - No bulk publish has been requested for this identity pool

IN_PROGRESS - Data is being published to the configured stream

SUCCEEDED - All data for the identity pool has been published to the configured stream

FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause.

Constraints:
Allowed Values: NOT_STARTED, IN_PROGRESS, FAILED, SUCCEEDED

 
     private String bulkPublishStatus;

    
If BulkPublishStatus is FAILED this field will contain the error message that caused the bulk publish to fail.
 
     private String failureMessage;

    
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.

Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+

Returns:
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
 
     public String getIdentityPoolId() {
         return ;
     }
    
    
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.

Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+

Parameters:
identityPoolId A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
 
     public void setIdentityPoolId(String identityPoolId) {
         this. = identityPoolId;
     }
    
    
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+

Parameters:
identityPoolId A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetBulkPublishDetailsResult withIdentityPoolId(String identityPoolId) {
        this. = identityPoolId;
        return this;
    }

    
The date/time at which the last bulk publish was initiated.

Returns:
The date/time at which the last bulk publish was initiated.
        return ;
    }
    
    
The date/time at which the last bulk publish was initiated.

Parameters:
bulkPublishStartTime The date/time at which the last bulk publish was initiated.
    public void setBulkPublishStartTime(java.util.Date bulkPublishStartTime) {
        this. = bulkPublishStartTime;
    }
    
    
The date/time at which the last bulk publish was initiated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
bulkPublishStartTime The date/time at which the last bulk publish was initiated.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetBulkPublishDetailsResult withBulkPublishStartTime(java.util.Date bulkPublishStartTime) {
        this. = bulkPublishStartTime;
        return this;
    }

    
If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation completed.

Returns:
If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation completed.
        return ;
    }
    
    
If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation completed.

Parameters:
bulkPublishCompleteTime If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation completed.
    public void setBulkPublishCompleteTime(java.util.Date bulkPublishCompleteTime) {
        this. = bulkPublishCompleteTime;
    }
    
    
If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation completed.

Returns a reference to this object so that method calls can be chained together.

Parameters:
bulkPublishCompleteTime If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation completed.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetBulkPublishDetailsResult withBulkPublishCompleteTime(java.util.Date bulkPublishCompleteTime) {
        this. = bulkPublishCompleteTime;
        return this;
    }

    
Status of the last bulk publish operation, valid values are:

NOT_STARTED - No bulk publish has been requested for this identity pool

IN_PROGRESS - Data is being published to the configured stream

SUCCEEDED - All data for the identity pool has been published to the configured stream

FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause.

Constraints:
Allowed Values: NOT_STARTED, IN_PROGRESS, FAILED, SUCCEEDED

Returns:
Status of the last bulk publish operation, valid values are:

NOT_STARTED - No bulk publish has been requested for this identity pool

IN_PROGRESS - Data is being published to the configured stream

SUCCEEDED - All data for the identity pool has been published to the configured stream

FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause.

See also:
BulkPublishStatus
    public String getBulkPublishStatus() {
        return ;
    }
    
    
Status of the last bulk publish operation, valid values are:

NOT_STARTED - No bulk publish has been requested for this identity pool

IN_PROGRESS - Data is being published to the configured stream

SUCCEEDED - All data for the identity pool has been published to the configured stream

FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause.

Constraints:
Allowed Values: NOT_STARTED, IN_PROGRESS, FAILED, SUCCEEDED

Parameters:
bulkPublishStatus Status of the last bulk publish operation, valid values are:

NOT_STARTED - No bulk publish has been requested for this identity pool

IN_PROGRESS - Data is being published to the configured stream

SUCCEEDED - All data for the identity pool has been published to the configured stream

FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause.

See also:
BulkPublishStatus
    public void setBulkPublishStatus(String bulkPublishStatus) {
        this. = bulkPublishStatus;
    }
    
    
Status of the last bulk publish operation, valid values are:

NOT_STARTED - No bulk publish has been requested for this identity pool

IN_PROGRESS - Data is being published to the configured stream

SUCCEEDED - All data for the identity pool has been published to the configured stream

FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: NOT_STARTED, IN_PROGRESS, FAILED, SUCCEEDED

Parameters:
bulkPublishStatus Status of the last bulk publish operation, valid values are:

NOT_STARTED - No bulk publish has been requested for this identity pool

IN_PROGRESS - Data is being published to the configured stream

SUCCEEDED - All data for the identity pool has been published to the configured stream

FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause.

Returns:
A reference to this updated object so that method calls can be chained together.
See also:
BulkPublishStatus
    public GetBulkPublishDetailsResult withBulkPublishStatus(String bulkPublishStatus) {
        this. = bulkPublishStatus;
        return this;
    }

    
Status of the last bulk publish operation, valid values are:

NOT_STARTED - No bulk publish has been requested for this identity pool

IN_PROGRESS - Data is being published to the configured stream

SUCCEEDED - All data for the identity pool has been published to the configured stream

FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause.

Constraints:
Allowed Values: NOT_STARTED, IN_PROGRESS, FAILED, SUCCEEDED

Parameters:
bulkPublishStatus Status of the last bulk publish operation, valid values are:

NOT_STARTED - No bulk publish has been requested for this identity pool

IN_PROGRESS - Data is being published to the configured stream

SUCCEEDED - All data for the identity pool has been published to the configured stream

FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause.

See also:
BulkPublishStatus
    public void setBulkPublishStatus(BulkPublishStatus bulkPublishStatus) {
        this. = bulkPublishStatus.toString();
    }
    
    
Status of the last bulk publish operation, valid values are:

NOT_STARTED - No bulk publish has been requested for this identity pool

IN_PROGRESS - Data is being published to the configured stream

SUCCEEDED - All data for the identity pool has been published to the configured stream

FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: NOT_STARTED, IN_PROGRESS, FAILED, SUCCEEDED

Parameters:
bulkPublishStatus Status of the last bulk publish operation, valid values are:

NOT_STARTED - No bulk publish has been requested for this identity pool

IN_PROGRESS - Data is being published to the configured stream

SUCCEEDED - All data for the identity pool has been published to the configured stream

FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause.

Returns:
A reference to this updated object so that method calls can be chained together.
See also:
BulkPublishStatus
        this. = bulkPublishStatus.toString();
        return this;
    }

    
If BulkPublishStatus is FAILED this field will contain the error message that caused the bulk publish to fail.

Returns:
If BulkPublishStatus is FAILED this field will contain the error message that caused the bulk publish to fail.
    public String getFailureMessage() {
        return ;
    }
    
    
If BulkPublishStatus is FAILED this field will contain the error message that caused the bulk publish to fail.

Parameters:
failureMessage If BulkPublishStatus is FAILED this field will contain the error message that caused the bulk publish to fail.
    public void setFailureMessage(String failureMessage) {
        this. = failureMessage;
    }
    
    
If BulkPublishStatus is FAILED this field will contain the error message that caused the bulk publish to fail.

Returns a reference to this object so that method calls can be chained together.

Parameters:
failureMessage If BulkPublishStatus is FAILED this field will contain the error message that caused the bulk publish to fail.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetBulkPublishDetailsResult withFailureMessage(String failureMessage) {
        this. = failureMessage;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getIdentityPoolId() != nullsb.append("IdentityPoolId: " + getIdentityPoolId() + ",");
        if (getBulkPublishStartTime() != nullsb.append("BulkPublishStartTime: " + getBulkPublishStartTime() + ",");
        if (getBulkPublishCompleteTime() != nullsb.append("BulkPublishCompleteTime: " + getBulkPublishCompleteTime() + ",");
        if (getBulkPublishStatus() != nullsb.append("BulkPublishStatus: " + getBulkPublishStatus() + ",");
        if (getFailureMessage() != nullsb.append("FailureMessage: " + getFailureMessage() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getIdentityPoolId() == null) ? 0 : getIdentityPoolId().hashCode()); 
        hashCode = prime * hashCode + ((getBulkPublishStartTime() == null) ? 0 : getBulkPublishStartTime().hashCode()); 
        hashCode = prime * hashCode + ((getBulkPublishCompleteTime() == null) ? 0 : getBulkPublishCompleteTime().hashCode()); 
        hashCode = prime * hashCode + ((getBulkPublishStatus() == null) ? 0 : getBulkPublishStatus().hashCode()); 
        hashCode = prime * hashCode + ((getFailureMessage() == null) ? 0 : getFailureMessage().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof GetBulkPublishDetailsResult == falsereturn false;
        
        if (other.getIdentityPoolId() == null ^ this.getIdentityPoolId() == nullreturn false;
        if (other.getIdentityPoolId() != null && other.getIdentityPoolId().equals(this.getIdentityPoolId()) == falsereturn false
        if (other.getBulkPublishStartTime() == null ^ this.getBulkPublishStartTime() == nullreturn false;
        if (other.getBulkPublishStartTime() != null && other.getBulkPublishStartTime().equals(this.getBulkPublishStartTime()) == falsereturn false
        if (other.getBulkPublishCompleteTime() == null ^ this.getBulkPublishCompleteTime() == nullreturn false;
        if (other.getBulkPublishCompleteTime() != null && other.getBulkPublishCompleteTime().equals(this.getBulkPublishCompleteTime()) == falsereturn false
        if (other.getBulkPublishStatus() == null ^ this.getBulkPublishStatus() == nullreturn false;
        if (other.getBulkPublishStatus() != null && other.getBulkPublishStatus().equals(this.getBulkPublishStatus()) == falsereturn false
        if (other.getFailureMessage() == null ^ this.getFailureMessage() == nullreturn false;
        if (other.getFailureMessage() != null && other.getFailureMessage().equals(this.getFailureMessage()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (GetBulkPublishDetailsResultsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X