com.amazonaws.services.frauddetector.model.IngestedEventStatistics Maven / Gradle / Ivy
Show all versions of aws-java-sdk-frauddetector Show documentation
/*
* 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.frauddetector.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Data about the stored events.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class IngestedEventStatistics implements Serializable, Cloneable, StructuredPojo {
/**
*
* The number of stored events.
*
*/
private Long numberOfEvents;
/**
*
* The total size of the stored events.
*
*/
private Long eventDataSizeInBytes;
/**
*
* The oldest stored event.
*
*/
private String leastRecentEvent;
/**
*
* The newest stored event.
*
*/
private String mostRecentEvent;
/**
*
* Timestamp of when the stored event was last updated.
*
*/
private String lastUpdatedTime;
/**
*
* The number of stored events.
*
*
* @param numberOfEvents
* The number of stored events.
*/
public void setNumberOfEvents(Long numberOfEvents) {
this.numberOfEvents = numberOfEvents;
}
/**
*
* The number of stored events.
*
*
* @return The number of stored events.
*/
public Long getNumberOfEvents() {
return this.numberOfEvents;
}
/**
*
* The number of stored events.
*
*
* @param numberOfEvents
* The number of stored events.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IngestedEventStatistics withNumberOfEvents(Long numberOfEvents) {
setNumberOfEvents(numberOfEvents);
return this;
}
/**
*
* The total size of the stored events.
*
*
* @param eventDataSizeInBytes
* The total size of the stored events.
*/
public void setEventDataSizeInBytes(Long eventDataSizeInBytes) {
this.eventDataSizeInBytes = eventDataSizeInBytes;
}
/**
*
* The total size of the stored events.
*
*
* @return The total size of the stored events.
*/
public Long getEventDataSizeInBytes() {
return this.eventDataSizeInBytes;
}
/**
*
* The total size of the stored events.
*
*
* @param eventDataSizeInBytes
* The total size of the stored events.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IngestedEventStatistics withEventDataSizeInBytes(Long eventDataSizeInBytes) {
setEventDataSizeInBytes(eventDataSizeInBytes);
return this;
}
/**
*
* The oldest stored event.
*
*
* @param leastRecentEvent
* The oldest stored event.
*/
public void setLeastRecentEvent(String leastRecentEvent) {
this.leastRecentEvent = leastRecentEvent;
}
/**
*
* The oldest stored event.
*
*
* @return The oldest stored event.
*/
public String getLeastRecentEvent() {
return this.leastRecentEvent;
}
/**
*
* The oldest stored event.
*
*
* @param leastRecentEvent
* The oldest stored event.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IngestedEventStatistics withLeastRecentEvent(String leastRecentEvent) {
setLeastRecentEvent(leastRecentEvent);
return this;
}
/**
*
* The newest stored event.
*
*
* @param mostRecentEvent
* The newest stored event.
*/
public void setMostRecentEvent(String mostRecentEvent) {
this.mostRecentEvent = mostRecentEvent;
}
/**
*
* The newest stored event.
*
*
* @return The newest stored event.
*/
public String getMostRecentEvent() {
return this.mostRecentEvent;
}
/**
*
* The newest stored event.
*
*
* @param mostRecentEvent
* The newest stored event.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IngestedEventStatistics withMostRecentEvent(String mostRecentEvent) {
setMostRecentEvent(mostRecentEvent);
return this;
}
/**
*
* Timestamp of when the stored event was last updated.
*
*
* @param lastUpdatedTime
* Timestamp of when the stored event was last updated.
*/
public void setLastUpdatedTime(String lastUpdatedTime) {
this.lastUpdatedTime = lastUpdatedTime;
}
/**
*
* Timestamp of when the stored event was last updated.
*
*
* @return Timestamp of when the stored event was last updated.
*/
public String getLastUpdatedTime() {
return this.lastUpdatedTime;
}
/**
*
* Timestamp of when the stored event was last updated.
*
*
* @param lastUpdatedTime
* Timestamp of when the stored event was last updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IngestedEventStatistics withLastUpdatedTime(String lastUpdatedTime) {
setLastUpdatedTime(lastUpdatedTime);
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 (getNumberOfEvents() != null)
sb.append("NumberOfEvents: ").append(getNumberOfEvents()).append(",");
if (getEventDataSizeInBytes() != null)
sb.append("EventDataSizeInBytes: ").append(getEventDataSizeInBytes()).append(",");
if (getLeastRecentEvent() != null)
sb.append("LeastRecentEvent: ").append(getLeastRecentEvent()).append(",");
if (getMostRecentEvent() != null)
sb.append("MostRecentEvent: ").append(getMostRecentEvent()).append(",");
if (getLastUpdatedTime() != null)
sb.append("LastUpdatedTime: ").append(getLastUpdatedTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof IngestedEventStatistics == false)
return false;
IngestedEventStatistics other = (IngestedEventStatistics) obj;
if (other.getNumberOfEvents() == null ^ this.getNumberOfEvents() == null)
return false;
if (other.getNumberOfEvents() != null && other.getNumberOfEvents().equals(this.getNumberOfEvents()) == false)
return false;
if (other.getEventDataSizeInBytes() == null ^ this.getEventDataSizeInBytes() == null)
return false;
if (other.getEventDataSizeInBytes() != null && other.getEventDataSizeInBytes().equals(this.getEventDataSizeInBytes()) == false)
return false;
if (other.getLeastRecentEvent() == null ^ this.getLeastRecentEvent() == null)
return false;
if (other.getLeastRecentEvent() != null && other.getLeastRecentEvent().equals(this.getLeastRecentEvent()) == false)
return false;
if (other.getMostRecentEvent() == null ^ this.getMostRecentEvent() == null)
return false;
if (other.getMostRecentEvent() != null && other.getMostRecentEvent().equals(this.getMostRecentEvent()) == false)
return false;
if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null)
return false;
if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getNumberOfEvents() == null) ? 0 : getNumberOfEvents().hashCode());
hashCode = prime * hashCode + ((getEventDataSizeInBytes() == null) ? 0 : getEventDataSizeInBytes().hashCode());
hashCode = prime * hashCode + ((getLeastRecentEvent() == null) ? 0 : getLeastRecentEvent().hashCode());
hashCode = prime * hashCode + ((getMostRecentEvent() == null) ? 0 : getMostRecentEvent().hashCode());
hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode());
return hashCode;
}
@Override
public IngestedEventStatistics clone() {
try {
return (IngestedEventStatistics) 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.frauddetector.model.transform.IngestedEventStatisticsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}