All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.macie2.model.GetMacieSessionResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Macie 2 module holds the client classes that are used for communicating with Amazon Macie 2 Service

The newest version!
/*
 * Copyright 2019-2024 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.macie2.model;

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

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetMacieSessionResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie account was created. *

*/ private java.util.Date createdAt; /** *

* The frequency with which Amazon Macie publishes updates to policy findings for the account. This includes * publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events). *

*/ private String findingPublishingFrequency; /** *

* The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze data in * Amazon Web Services resources for the account. *

*/ private String serviceRole; /** *

* The current status of the Amazon Macie account. Possible values are: PAUSED, the account is enabled but all Macie * activities are suspended (paused) for the account; and, ENABLED, the account is enabled and all Macie activities * are enabled for the account. *

*/ private String status; /** *

* The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status or configuration * settings for the Amazon Macie account. *

*/ private java.util.Date updatedAt; /** *

* The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie account was created. *

* * @param createdAt * The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie account was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie account was created. *

* * @return The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie account was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie account was created. *

* * @param createdAt * The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie account was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMacieSessionResult withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* The frequency with which Amazon Macie publishes updates to policy findings for the account. This includes * publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events). *

* * @param findingPublishingFrequency * The frequency with which Amazon Macie publishes updates to policy findings for the account. This includes * publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events). * @see FindingPublishingFrequency */ public void setFindingPublishingFrequency(String findingPublishingFrequency) { this.findingPublishingFrequency = findingPublishingFrequency; } /** *

* The frequency with which Amazon Macie publishes updates to policy findings for the account. This includes * publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events). *

* * @return The frequency with which Amazon Macie publishes updates to policy findings for the account. This includes * publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events). * @see FindingPublishingFrequency */ public String getFindingPublishingFrequency() { return this.findingPublishingFrequency; } /** *

* The frequency with which Amazon Macie publishes updates to policy findings for the account. This includes * publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events). *

* * @param findingPublishingFrequency * The frequency with which Amazon Macie publishes updates to policy findings for the account. This includes * publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events). * @return Returns a reference to this object so that method calls can be chained together. * @see FindingPublishingFrequency */ public GetMacieSessionResult withFindingPublishingFrequency(String findingPublishingFrequency) { setFindingPublishingFrequency(findingPublishingFrequency); return this; } /** *

* The frequency with which Amazon Macie publishes updates to policy findings for the account. This includes * publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events). *

* * @param findingPublishingFrequency * The frequency with which Amazon Macie publishes updates to policy findings for the account. This includes * publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events). * @return Returns a reference to this object so that method calls can be chained together. * @see FindingPublishingFrequency */ public GetMacieSessionResult withFindingPublishingFrequency(FindingPublishingFrequency findingPublishingFrequency) { this.findingPublishingFrequency = findingPublishingFrequency.toString(); return this; } /** *

* The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze data in * Amazon Web Services resources for the account. *

* * @param serviceRole * The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze * data in Amazon Web Services resources for the account. */ public void setServiceRole(String serviceRole) { this.serviceRole = serviceRole; } /** *

* The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze data in * Amazon Web Services resources for the account. *

* * @return The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze * data in Amazon Web Services resources for the account. */ public String getServiceRole() { return this.serviceRole; } /** *

* The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze data in * Amazon Web Services resources for the account. *

* * @param serviceRole * The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze * data in Amazon Web Services resources for the account. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMacieSessionResult withServiceRole(String serviceRole) { setServiceRole(serviceRole); return this; } /** *

* The current status of the Amazon Macie account. Possible values are: PAUSED, the account is enabled but all Macie * activities are suspended (paused) for the account; and, ENABLED, the account is enabled and all Macie activities * are enabled for the account. *

* * @param status * The current status of the Amazon Macie account. Possible values are: PAUSED, the account is enabled but * all Macie activities are suspended (paused) for the account; and, ENABLED, the account is enabled and all * Macie activities are enabled for the account. * @see MacieStatus */ public void setStatus(String status) { this.status = status; } /** *

* The current status of the Amazon Macie account. Possible values are: PAUSED, the account is enabled but all Macie * activities are suspended (paused) for the account; and, ENABLED, the account is enabled and all Macie activities * are enabled for the account. *

* * @return The current status of the Amazon Macie account. Possible values are: PAUSED, the account is enabled but * all Macie activities are suspended (paused) for the account; and, ENABLED, the account is enabled and all * Macie activities are enabled for the account. * @see MacieStatus */ public String getStatus() { return this.status; } /** *

* The current status of the Amazon Macie account. Possible values are: PAUSED, the account is enabled but all Macie * activities are suspended (paused) for the account; and, ENABLED, the account is enabled and all Macie activities * are enabled for the account. *

* * @param status * The current status of the Amazon Macie account. Possible values are: PAUSED, the account is enabled but * all Macie activities are suspended (paused) for the account; and, ENABLED, the account is enabled and all * Macie activities are enabled for the account. * @return Returns a reference to this object so that method calls can be chained together. * @see MacieStatus */ public GetMacieSessionResult withStatus(String status) { setStatus(status); return this; } /** *

* The current status of the Amazon Macie account. Possible values are: PAUSED, the account is enabled but all Macie * activities are suspended (paused) for the account; and, ENABLED, the account is enabled and all Macie activities * are enabled for the account. *

* * @param status * The current status of the Amazon Macie account. Possible values are: PAUSED, the account is enabled but * all Macie activities are suspended (paused) for the account; and, ENABLED, the account is enabled and all * Macie activities are enabled for the account. * @return Returns a reference to this object so that method calls can be chained together. * @see MacieStatus */ public GetMacieSessionResult withStatus(MacieStatus status) { this.status = status.toString(); return this; } /** *

* The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status or configuration * settings for the Amazon Macie account. *

* * @param updatedAt * The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status or * configuration settings for the Amazon Macie account. */ public void setUpdatedAt(java.util.Date updatedAt) { this.updatedAt = updatedAt; } /** *

* The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status or configuration * settings for the Amazon Macie account. *

* * @return The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status or * configuration settings for the Amazon Macie account. */ public java.util.Date getUpdatedAt() { return this.updatedAt; } /** *

* The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status or configuration * settings for the Amazon Macie account. *

* * @param updatedAt * The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status or * configuration settings for the Amazon Macie account. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMacieSessionResult withUpdatedAt(java.util.Date updatedAt) { setUpdatedAt(updatedAt); 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 (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getFindingPublishingFrequency() != null) sb.append("FindingPublishingFrequency: ").append(getFindingPublishingFrequency()).append(","); if (getServiceRole() != null) sb.append("ServiceRole: ").append(getServiceRole()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getUpdatedAt() != null) sb.append("UpdatedAt: ").append(getUpdatedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetMacieSessionResult == false) return false; GetMacieSessionResult other = (GetMacieSessionResult) obj; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getFindingPublishingFrequency() == null ^ this.getFindingPublishingFrequency() == null) return false; if (other.getFindingPublishingFrequency() != null && other.getFindingPublishingFrequency().equals(this.getFindingPublishingFrequency()) == false) return false; if (other.getServiceRole() == null ^ this.getServiceRole() == null) return false; if (other.getServiceRole() != null && other.getServiceRole().equals(this.getServiceRole()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null) return false; if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getFindingPublishingFrequency() == null) ? 0 : getFindingPublishingFrequency().hashCode()); hashCode = prime * hashCode + ((getServiceRole() == null) ? 0 : getServiceRole().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode()); return hashCode; } @Override public GetMacieSessionResult clone() { try { return (GetMacieSessionResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy