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.identitymanagement.model;
 

Contains the response to a successful GetCredentialReport request.

 
 public class GetCredentialReportResult implements SerializableCloneable {

    
Contains the credential report. The report is Base64-encoded.
 
     private java.nio.ByteBuffer content;

    
The format (MIME type) of the credential report.

Constraints:
Allowed Values: text/csv

 
     private String reportFormat;

    
The date and time when the credential report was created, in ISO 8601 date-time format.
 
     private java.util.Date generatedTime;

    
Contains the credential report. The report is Base64-encoded.

Returns:
Contains the credential report. The report is Base64-encoded.
 
     public java.nio.ByteBuffer getContent() {
         return ;
     }
    
    
Contains the credential report. The report is Base64-encoded.

Parameters:
content Contains the credential report. The report is Base64-encoded.
 
     public void setContent(java.nio.ByteBuffer content) {
         this. = content;
     }
    
    
Contains the credential report. The report is Base64-encoded.

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

Parameters:
content Contains the credential report. The report is Base64-encoded.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         this. = content;
         return this;
     }

    
The format (MIME type) of the credential report.

Constraints:
Allowed Values: text/csv

Returns:
The format (MIME type) of the credential report.
See also:
ReportFormatType
 
     public String getReportFormat() {
         return ;
     }
    
    
The format (MIME type) of the credential report.

Constraints:
Allowed Values: text/csv

Parameters:
reportFormat The format (MIME type) of the credential report.
See also:
ReportFormatType
    public void setReportFormat(String reportFormat) {
        this. = reportFormat;
    }
    
    
The format (MIME type) of the credential report.

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

Constraints:
Allowed Values: text/csv

Parameters:
reportFormat The format (MIME type) of the credential report.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ReportFormatType
    public GetCredentialReportResult withReportFormat(String reportFormat) {
        this. = reportFormat;
        return this;
    }

    
The format (MIME type) of the credential report.

Constraints:
Allowed Values: text/csv

Parameters:
reportFormat The format (MIME type) of the credential report.
See also:
ReportFormatType
    public void setReportFormat(ReportFormatType reportFormat) {
        this. = reportFormat.toString();
    }
    
    
The format (MIME type) of the credential report.

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

Constraints:
Allowed Values: text/csv

Parameters:
reportFormat The format (MIME type) of the credential report.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ReportFormatType
        this. = reportFormat.toString();
        return this;
    }

    
The date and time when the credential report was created, in ISO 8601 date-time format.

Returns:
The date and time when the credential report was created, in ISO 8601 date-time format.
    public java.util.Date getGeneratedTime() {
        return ;
    }
    
    
The date and time when the credential report was created, in ISO 8601 date-time format.

Parameters:
generatedTime The date and time when the credential report was created, in ISO 8601 date-time format.
    public void setGeneratedTime(java.util.Date generatedTime) {
        this. = generatedTime;
    }
    
    
The date and time when the credential report was created, in ISO 8601 date-time format.

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

Parameters:
generatedTime The date and time when the credential report was created, in ISO 8601 date-time format.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetCredentialReportResult withGeneratedTime(java.util.Date generatedTime) {
        this. = generatedTime;
        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 (getContent() != nullsb.append("Content: " + getContent() + ",");
        if (getReportFormat() != nullsb.append("ReportFormat: " + getReportFormat() + ",");
        if (getGeneratedTime() != nullsb.append("GeneratedTime: " + getGeneratedTime() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode()); 
        hashCode = prime * hashCode + ((getReportFormat() == null) ? 0 : getReportFormat().hashCode()); 
        hashCode = prime * hashCode + ((getGeneratedTime() == null) ? 0 : getGeneratedTime().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof GetCredentialReportResult == falsereturn false;
        
        if (other.getContent() == null ^ this.getContent() == nullreturn false;
        if (other.getContent() != null && other.getContent().equals(this.getContent()) == falsereturn false
        if (other.getReportFormat() == null ^ this.getReportFormat() == nullreturn false;
        if (other.getReportFormat() != null && other.getReportFormat().equals(this.getReportFormat()) == falsereturn false
        if (other.getGeneratedTime() == null ^ this.getGeneratedTime() == nullreturn false;
        if (other.getGeneratedTime() != null && other.getGeneratedTime().equals(this.getGeneratedTime()) == falsereturn false
        return true;
    }
    
    @Override
    public GetCredentialReportResult clone() {
        try {
            return (GetCredentialReportResultsuper.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