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

com.amazonaws.services.support.model.DateInterval Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
Show 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.support.model;

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

/**
 * 

* Date and time (UTC) format in RFC 3339 : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. *

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

* A JSON object containing start and date time (UTC). Date and time format is RFC 3339 : * 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. *

*/ private String startDateTime; /** *

* End Date Time (UTC). RFC 3339 format : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. *

*/ private String endDateTime; /** *

* A JSON object containing start and date time (UTC). Date and time format is RFC 3339 : * 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. *

* * @param startDateTime * A JSON object containing start and date time (UTC). Date and time format is RFC 3339 : * 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. */ public void setStartDateTime(String startDateTime) { this.startDateTime = startDateTime; } /** *

* A JSON object containing start and date time (UTC). Date and time format is RFC 3339 : * 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. *

* * @return A JSON object containing start and date time (UTC). Date and time format is RFC 3339 : * 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. */ public String getStartDateTime() { return this.startDateTime; } /** *

* A JSON object containing start and date time (UTC). Date and time format is RFC 3339 : * 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. *

* * @param startDateTime * A JSON object containing start and date time (UTC). Date and time format is RFC 3339 : * 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. * @return Returns a reference to this object so that method calls can be chained together. */ public DateInterval withStartDateTime(String startDateTime) { setStartDateTime(startDateTime); return this; } /** *

* End Date Time (UTC). RFC 3339 format : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. *

* * @param endDateTime * End Date Time (UTC). RFC 3339 format : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. */ public void setEndDateTime(String endDateTime) { this.endDateTime = endDateTime; } /** *

* End Date Time (UTC). RFC 3339 format : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. *

* * @return End Date Time (UTC). RFC 3339 format : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. */ public String getEndDateTime() { return this.endDateTime; } /** *

* End Date Time (UTC). RFC 3339 format : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. *

* * @param endDateTime * End Date Time (UTC). RFC 3339 format : 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ'. * @return Returns a reference to this object so that method calls can be chained together. */ public DateInterval withEndDateTime(String endDateTime) { setEndDateTime(endDateTime); 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 (getStartDateTime() != null) sb.append("StartDateTime: ").append(getStartDateTime()).append(","); if (getEndDateTime() != null) sb.append("EndDateTime: ").append(getEndDateTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DateInterval == false) return false; DateInterval other = (DateInterval) obj; if (other.getStartDateTime() == null ^ this.getStartDateTime() == null) return false; if (other.getStartDateTime() != null && other.getStartDateTime().equals(this.getStartDateTime()) == false) return false; if (other.getEndDateTime() == null ^ this.getEndDateTime() == null) return false; if (other.getEndDateTime() != null && other.getEndDateTime().equals(this.getEndDateTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStartDateTime() == null) ? 0 : getStartDateTime().hashCode()); hashCode = prime * hashCode + ((getEndDateTime() == null) ? 0 : getEndDateTime().hashCode()); return hashCode; } @Override public DateInterval clone() { try { return (DateInterval) 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.support.model.transform.DateIntervalMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy