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

com.amazonaws.services.auditmanager.model.Notification Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Audit Manager module holds the client classes that are used for communicating with AWS Audit Manager 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.auditmanager.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The notification that informs a user of an update in Audit Manager. For example, this includes the notification * that's sent when a control set is delegated for review. *

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

* The unique identifier for the notification. *

*/ private String id; /** *

* The identifier for the assessment. *

*/ private String assessmentId; /** *

* The name of the related assessment. *

*/ private String assessmentName; /** *

* The identifier for the control set. *

*/ private String controlSetId; /** *

* Specifies the name of the control set that the notification is about. *

*/ private String controlSetName; /** *

* The description of the notification. *

*/ private String description; /** *

* The time when the notification was sent. *

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

* The sender of the notification. *

*/ private String source; /** *

* The unique identifier for the notification. *

* * @param id * The unique identifier for the notification. */ public void setId(String id) { this.id = id; } /** *

* The unique identifier for the notification. *

* * @return The unique identifier for the notification. */ public String getId() { return this.id; } /** *

* The unique identifier for the notification. *

* * @param id * The unique identifier for the notification. * @return Returns a reference to this object so that method calls can be chained together. */ public Notification withId(String id) { setId(id); return this; } /** *

* The identifier for the assessment. *

* * @param assessmentId * The identifier for the assessment. */ public void setAssessmentId(String assessmentId) { this.assessmentId = assessmentId; } /** *

* The identifier for the assessment. *

* * @return The identifier for the assessment. */ public String getAssessmentId() { return this.assessmentId; } /** *

* The identifier for the assessment. *

* * @param assessmentId * The identifier for the assessment. * @return Returns a reference to this object so that method calls can be chained together. */ public Notification withAssessmentId(String assessmentId) { setAssessmentId(assessmentId); return this; } /** *

* The name of the related assessment. *

* * @param assessmentName * The name of the related assessment. */ public void setAssessmentName(String assessmentName) { this.assessmentName = assessmentName; } /** *

* The name of the related assessment. *

* * @return The name of the related assessment. */ public String getAssessmentName() { return this.assessmentName; } /** *

* The name of the related assessment. *

* * @param assessmentName * The name of the related assessment. * @return Returns a reference to this object so that method calls can be chained together. */ public Notification withAssessmentName(String assessmentName) { setAssessmentName(assessmentName); return this; } /** *

* The identifier for the control set. *

* * @param controlSetId * The identifier for the control set. */ public void setControlSetId(String controlSetId) { this.controlSetId = controlSetId; } /** *

* The identifier for the control set. *

* * @return The identifier for the control set. */ public String getControlSetId() { return this.controlSetId; } /** *

* The identifier for the control set. *

* * @param controlSetId * The identifier for the control set. * @return Returns a reference to this object so that method calls can be chained together. */ public Notification withControlSetId(String controlSetId) { setControlSetId(controlSetId); return this; } /** *

* Specifies the name of the control set that the notification is about. *

* * @param controlSetName * Specifies the name of the control set that the notification is about. */ public void setControlSetName(String controlSetName) { this.controlSetName = controlSetName; } /** *

* Specifies the name of the control set that the notification is about. *

* * @return Specifies the name of the control set that the notification is about. */ public String getControlSetName() { return this.controlSetName; } /** *

* Specifies the name of the control set that the notification is about. *

* * @param controlSetName * Specifies the name of the control set that the notification is about. * @return Returns a reference to this object so that method calls can be chained together. */ public Notification withControlSetName(String controlSetName) { setControlSetName(controlSetName); return this; } /** *

* The description of the notification. *

* * @param description * The description of the notification. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the notification. *

* * @return The description of the notification. */ public String getDescription() { return this.description; } /** *

* The description of the notification. *

* * @param description * The description of the notification. * @return Returns a reference to this object so that method calls can be chained together. */ public Notification withDescription(String description) { setDescription(description); return this; } /** *

* The time when the notification was sent. *

* * @param eventTime * The time when the notification was sent. */ public void setEventTime(java.util.Date eventTime) { this.eventTime = eventTime; } /** *

* The time when the notification was sent. *

* * @return The time when the notification was sent. */ public java.util.Date getEventTime() { return this.eventTime; } /** *

* The time when the notification was sent. *

* * @param eventTime * The time when the notification was sent. * @return Returns a reference to this object so that method calls can be chained together. */ public Notification withEventTime(java.util.Date eventTime) { setEventTime(eventTime); return this; } /** *

* The sender of the notification. *

* * @param source * The sender of the notification. */ public void setSource(String source) { this.source = source; } /** *

* The sender of the notification. *

* * @return The sender of the notification. */ public String getSource() { return this.source; } /** *

* The sender of the notification. *

* * @param source * The sender of the notification. * @return Returns a reference to this object so that method calls can be chained together. */ public Notification withSource(String source) { setSource(source); 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getAssessmentId() != null) sb.append("AssessmentId: ").append(getAssessmentId()).append(","); if (getAssessmentName() != null) sb.append("AssessmentName: ").append("***Sensitive Data Redacted***").append(","); if (getControlSetId() != null) sb.append("ControlSetId: ").append(getControlSetId()).append(","); if (getControlSetName() != null) sb.append("ControlSetName: ").append(getControlSetName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getEventTime() != null) sb.append("EventTime: ").append(getEventTime()).append(","); if (getSource() != null) sb.append("Source: ").append(getSource()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Notification == false) return false; Notification other = (Notification) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getAssessmentId() == null ^ this.getAssessmentId() == null) return false; if (other.getAssessmentId() != null && other.getAssessmentId().equals(this.getAssessmentId()) == false) return false; if (other.getAssessmentName() == null ^ this.getAssessmentName() == null) return false; if (other.getAssessmentName() != null && other.getAssessmentName().equals(this.getAssessmentName()) == false) return false; if (other.getControlSetId() == null ^ this.getControlSetId() == null) return false; if (other.getControlSetId() != null && other.getControlSetId().equals(this.getControlSetId()) == false) return false; if (other.getControlSetName() == null ^ this.getControlSetName() == null) return false; if (other.getControlSetName() != null && other.getControlSetName().equals(this.getControlSetName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getEventTime() == null ^ this.getEventTime() == null) return false; if (other.getEventTime() != null && other.getEventTime().equals(this.getEventTime()) == false) return false; if (other.getSource() == null ^ this.getSource() == null) return false; if (other.getSource() != null && other.getSource().equals(this.getSource()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getAssessmentId() == null) ? 0 : getAssessmentId().hashCode()); hashCode = prime * hashCode + ((getAssessmentName() == null) ? 0 : getAssessmentName().hashCode()); hashCode = prime * hashCode + ((getControlSetId() == null) ? 0 : getControlSetId().hashCode()); hashCode = prime * hashCode + ((getControlSetName() == null) ? 0 : getControlSetName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getEventTime() == null) ? 0 : getEventTime().hashCode()); hashCode = prime * hashCode + ((getSource() == null) ? 0 : getSource().hashCode()); return hashCode; } @Override public Notification clone() { try { return (Notification) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.auditmanager.model.transform.NotificationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy