/*
* 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.identitymanagement.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetServiceLastAccessedDetailsWithEntitiesResult extends com.amazonaws.AmazonWebServiceResult
* The status of the job.
*
* The date and time, in ISO 8601 date-time format, when the report job
* was created.
*
* The date and time, in ISO 8601 date-time format, when the generated
* report job was completed or failed.
*
* This field is null if the job is still in progress, as indicated by a job status value of
*
* An
* A flag that indicates whether there are more items to return. If your results were truncated, you can make a
* subsequent pagination request using the
* When
* An object that contains details about the reason the operation failed.
*
* The status of the job.
*
* The status of the job.
*
* The status of the job.
*
* The status of the job.
*
* The date and time, in ISO 8601 date-time format, when the report job
* was created.
*
* The date and time, in ISO 8601 date-time format, when the report job
* was created.
*
* The date and time, in ISO 8601 date-time format, when the report job
* was created.
*
* The date and time, in ISO 8601 date-time format, when the generated
* report job was completed or failed.
*
* This field is null if the job is still in progress, as indicated by a job status value of
* IN_PROGRESS
.
* EntityDetailsList
object that contains details about when an IAM entity (user or role) used group
* or policy permissions in an attempt to access the specified Amazon Web Services service.
* Marker
request parameter to retrieve more items. Note that
* IAM might return fewer than the MaxItems
number of results even when there are more results
* available. We recommend that you check IsTruncated
after every call to ensure that you receive all
* your results.
* IsTruncated
is true
, this element is present and contains the value to use for the
* Marker
parameter in a subsequent pagination request.
* IN_PROGRESS
.
*
* This field is null if the job is still in progress, as indicated by a job status value of
* IN_PROGRESS
.
*/
public void setJobCompletionDate(java.util.Date jobCompletionDate) {
this.jobCompletionDate = jobCompletionDate;
}
/**
*
* The date and time, in ISO 8601 date-time format, when the generated * report job was completed or failed. *
*
* This field is null if the job is still in progress, as indicated by a job status value of
* IN_PROGRESS
.
*
* This field is null if the job is still in progress, as indicated by a job status value of
* IN_PROGRESS
.
*/
public java.util.Date getJobCompletionDate() {
return this.jobCompletionDate;
}
/**
*
* The date and time, in ISO 8601 date-time format, when the generated * report job was completed or failed. *
*
* This field is null if the job is still in progress, as indicated by a job status value of
* IN_PROGRESS
.
*
* This field is null if the job is still in progress, as indicated by a job status value of
* IN_PROGRESS
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetServiceLastAccessedDetailsWithEntitiesResult withJobCompletionDate(java.util.Date jobCompletionDate) {
setJobCompletionDate(jobCompletionDate);
return this;
}
/**
*
* An EntityDetailsList
object that contains details about when an IAM entity (user or role) used group
* or policy permissions in an attempt to access the specified Amazon Web Services service.
*
EntityDetailsList
object that contains details about when an IAM entity (user or role)
* used group or policy permissions in an attempt to access the specified Amazon Web Services service.
*/
public java.util.List
* An EntityDetailsList
object that contains details about when an IAM entity (user or role) used group
* or policy permissions in an attempt to access the specified Amazon Web Services service.
*
EntityDetailsList
object that contains details about when an IAM entity (user or role)
* used group or policy permissions in an attempt to access the specified Amazon Web Services service.
*/
public void setEntityDetailsList(java.util.Collection
* An EntityDetailsList
object that contains details about when an IAM entity (user or role) used group
* or policy permissions in an attempt to access the specified Amazon Web Services service.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setEntityDetailsList(java.util.Collection)} or {@link #withEntityDetailsList(java.util.Collection)} if * you want to override the existing values. *
* * @param entityDetailsList * AnEntityDetailsList
object that contains details about when an IAM entity (user or role)
* used group or policy permissions in an attempt to access the specified Amazon Web Services service.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetServiceLastAccessedDetailsWithEntitiesResult withEntityDetailsList(EntityDetails... entityDetailsList) {
if (this.entityDetailsList == null) {
setEntityDetailsList(new com.amazonaws.internal.SdkInternalList
* An EntityDetailsList
object that contains details about when an IAM entity (user or role) used group
* or policy permissions in an attempt to access the specified Amazon Web Services service.
*
EntityDetailsList
object that contains details about when an IAM entity (user or role)
* used group or policy permissions in an attempt to access the specified Amazon Web Services service.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetServiceLastAccessedDetailsWithEntitiesResult withEntityDetailsList(java.util.Collection
* A flag that indicates whether there are more items to return. If your results were truncated, you can make a
* subsequent pagination request using the Marker
request parameter to retrieve more items. Note that
* IAM might return fewer than the MaxItems
number of results even when there are more results
* available. We recommend that you check IsTruncated
after every call to ensure that you receive all
* your results.
*
Marker
request parameter to retrieve more items.
* Note that IAM might return fewer than the MaxItems
number of results even when there are more
* results available. We recommend that you check IsTruncated
after every call to ensure that
* you receive all your results.
*/
public void setIsTruncated(Boolean isTruncated) {
this.isTruncated = isTruncated;
}
/**
*
* A flag that indicates whether there are more items to return. If your results were truncated, you can make a
* subsequent pagination request using the Marker
request parameter to retrieve more items. Note that
* IAM might return fewer than the MaxItems
number of results even when there are more results
* available. We recommend that you check IsTruncated
after every call to ensure that you receive all
* your results.
*
Marker
request parameter to retrieve more
* items. Note that IAM might return fewer than the MaxItems
number of results even when there
* are more results available. We recommend that you check IsTruncated
after every call to
* ensure that you receive all your results.
*/
public Boolean getIsTruncated() {
return this.isTruncated;
}
/**
*
* A flag that indicates whether there are more items to return. If your results were truncated, you can make a
* subsequent pagination request using the Marker
request parameter to retrieve more items. Note that
* IAM might return fewer than the MaxItems
number of results even when there are more results
* available. We recommend that you check IsTruncated
after every call to ensure that you receive all
* your results.
*
Marker
request parameter to retrieve more items.
* Note that IAM might return fewer than the MaxItems
number of results even when there are more
* results available. We recommend that you check IsTruncated
after every call to ensure that
* you receive all your results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetServiceLastAccessedDetailsWithEntitiesResult withIsTruncated(Boolean isTruncated) {
setIsTruncated(isTruncated);
return this;
}
/**
*
* A flag that indicates whether there are more items to return. If your results were truncated, you can make a
* subsequent pagination request using the Marker
request parameter to retrieve more items. Note that
* IAM might return fewer than the MaxItems
number of results even when there are more results
* available. We recommend that you check IsTruncated
after every call to ensure that you receive all
* your results.
*
Marker
request parameter to retrieve more
* items. Note that IAM might return fewer than the MaxItems
number of results even when there
* are more results available. We recommend that you check IsTruncated
after every call to
* ensure that you receive all your results.
*/
public Boolean isTruncated() {
return this.isTruncated;
}
/**
*
* When IsTruncated
is true
, this element is present and contains the value to use for the
* Marker
parameter in a subsequent pagination request.
*
IsTruncated
is true
, this element is present and contains the value to use
* for the Marker
parameter in a subsequent pagination request.
*/
public void setMarker(String marker) {
this.marker = marker;
}
/**
*
* When IsTruncated
is true
, this element is present and contains the value to use for the
* Marker
parameter in a subsequent pagination request.
*
IsTruncated
is true
, this element is present and contains the value to use
* for the Marker
parameter in a subsequent pagination request.
*/
public String getMarker() {
return this.marker;
}
/**
*
* When IsTruncated
is true
, this element is present and contains the value to use for the
* Marker
parameter in a subsequent pagination request.
*
IsTruncated
is true
, this element is present and contains the value to use
* for the Marker
parameter in a subsequent pagination request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetServiceLastAccessedDetailsWithEntitiesResult withMarker(String marker) {
setMarker(marker);
return this;
}
/**
* * An object that contains details about the reason the operation failed. *
* * @param error * An object that contains details about the reason the operation failed. */ public void setError(ErrorDetails error) { this.error = error; } /** ** An object that contains details about the reason the operation failed. *
* * @return An object that contains details about the reason the operation failed. */ public ErrorDetails getError() { return this.error; } /** ** An object that contains details about the reason the operation failed. *
* * @param error * An object that contains details about the reason the operation failed. * @return Returns a reference to this object so that method calls can be chained together. */ public GetServiceLastAccessedDetailsWithEntitiesResult withError(ErrorDetails error) { setError(error); 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 (getJobStatus() != null) sb.append("JobStatus: ").append(getJobStatus()).append(","); if (getJobCreationDate() != null) sb.append("JobCreationDate: ").append(getJobCreationDate()).append(","); if (getJobCompletionDate() != null) sb.append("JobCompletionDate: ").append(getJobCompletionDate()).append(","); if (getEntityDetailsList() != null) sb.append("EntityDetailsList: ").append(getEntityDetailsList()).append(","); if (getIsTruncated() != null) sb.append("IsTruncated: ").append(getIsTruncated()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()).append(","); if (getError() != null) sb.append("Error: ").append(getError()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetServiceLastAccessedDetailsWithEntitiesResult == false) return false; GetServiceLastAccessedDetailsWithEntitiesResult other = (GetServiceLastAccessedDetailsWithEntitiesResult) obj; if (other.getJobStatus() == null ^ this.getJobStatus() == null) return false; if (other.getJobStatus() != null && other.getJobStatus().equals(this.getJobStatus()) == false) return false; if (other.getJobCreationDate() == null ^ this.getJobCreationDate() == null) return false; if (other.getJobCreationDate() != null && other.getJobCreationDate().equals(this.getJobCreationDate()) == false) return false; if (other.getJobCompletionDate() == null ^ this.getJobCompletionDate() == null) return false; if (other.getJobCompletionDate() != null && other.getJobCompletionDate().equals(this.getJobCompletionDate()) == false) return false; if (other.getEntityDetailsList() == null ^ this.getEntityDetailsList() == null) return false; if (other.getEntityDetailsList() != null && other.getEntityDetailsList().equals(this.getEntityDetailsList()) == false) return false; if (other.getIsTruncated() == null ^ this.getIsTruncated() == null) return false; if (other.getIsTruncated() != null && other.getIsTruncated().equals(this.getIsTruncated()) == false) return false; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getError() == null ^ this.getError() == null) return false; if (other.getError() != null && other.getError().equals(this.getError()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobStatus() == null) ? 0 : getJobStatus().hashCode()); hashCode = prime * hashCode + ((getJobCreationDate() == null) ? 0 : getJobCreationDate().hashCode()); hashCode = prime * hashCode + ((getJobCompletionDate() == null) ? 0 : getJobCompletionDate().hashCode()); hashCode = prime * hashCode + ((getEntityDetailsList() == null) ? 0 : getEntityDetailsList().hashCode()); hashCode = prime * hashCode + ((getIsTruncated() == null) ? 0 : getIsTruncated().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getError() == null) ? 0 : getError().hashCode()); return hashCode; } @Override public GetServiceLastAccessedDetailsWithEntitiesResult clone() { try { return (GetServiceLastAccessedDetailsWithEntitiesResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }