/* * 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.sagemakergeospatial.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Represents a single searchable property to search on. *

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

* The structure representing EoCloudCover property filter containing a lower bound and upper bound. *

*/ private EoCloudCoverInput eoCloudCover; /** *

* The structure representing Land Cloud Cover property filter for Landsat collection containing a lower bound and * upper bound. *

*/ private LandsatCloudCoverLandInput landsatCloudCoverLand; /** *

* The structure representing Platform property filter consisting of value and comparison operator. *

*/ private PlatformInput platform; /** *

* The structure representing ViewOffNadir property filter containing a lower bound and upper bound. *

*/ private ViewOffNadirInput viewOffNadir; /** *

* The structure representing ViewSunAzimuth property filter containing a lower bound and upper bound. *

*/ private ViewSunAzimuthInput viewSunAzimuth; /** *

* The structure representing ViewSunElevation property filter containing a lower bound and upper bound. *

*/ private ViewSunElevationInput viewSunElevation; /** *

* The structure representing EoCloudCover property filter containing a lower bound and upper bound. *

* * @param eoCloudCover * The structure representing EoCloudCover property filter containing a lower bound and upper bound. */ public void setEoCloudCover(EoCloudCoverInput eoCloudCover) { this.eoCloudCover = eoCloudCover; } /** *

* The structure representing EoCloudCover property filter containing a lower bound and upper bound. *

* * @return The structure representing EoCloudCover property filter containing a lower bound and upper bound. */ public EoCloudCoverInput getEoCloudCover() { return this.eoCloudCover; } /** *

* The structure representing EoCloudCover property filter containing a lower bound and upper bound. *

* * @param eoCloudCover * The structure representing EoCloudCover property filter containing a lower bound and upper bound. * @return Returns a reference to this object so that method calls can be chained together. */ public Property withEoCloudCover(EoCloudCoverInput eoCloudCover) { setEoCloudCover(eoCloudCover); return this; } /** *

* The structure representing Land Cloud Cover property filter for Landsat collection containing a lower bound and * upper bound. *

* * @param landsatCloudCoverLand * The structure representing Land Cloud Cover property filter for Landsat collection containing a lower * bound and upper bound. */ public void setLandsatCloudCoverLand(LandsatCloudCoverLandInput landsatCloudCoverLand) { this.landsatCloudCoverLand = landsatCloudCoverLand; } /** *

* The structure representing Land Cloud Cover property filter for Landsat collection containing a lower bound and * upper bound. *

* * @return The structure representing Land Cloud Cover property filter for Landsat collection containing a lower * bound and upper bound. */ public LandsatCloudCoverLandInput getLandsatCloudCoverLand() { return this.landsatCloudCoverLand; } /** *

* The structure representing Land Cloud Cover property filter for Landsat collection containing a lower bound and * upper bound. *

* * @param landsatCloudCoverLand * The structure representing Land Cloud Cover property filter for Landsat collection containing a lower * bound and upper bound. * @return Returns a reference to this object so that method calls can be chained together. */ public Property withLandsatCloudCoverLand(LandsatCloudCoverLandInput landsatCloudCoverLand) { setLandsatCloudCoverLand(landsatCloudCoverLand); return this; } /** *

* The structure representing Platform property filter consisting of value and comparison operator. *

* * @param platform * The structure representing Platform property filter consisting of value and comparison operator. */ public void setPlatform(PlatformInput platform) { this.platform = platform; } /** *

* The structure representing Platform property filter consisting of value and comparison operator. *

* * @return The structure representing Platform property filter consisting of value and comparison operator. */ public PlatformInput getPlatform() { return this.platform; } /** *

* The structure representing Platform property filter consisting of value and comparison operator. *

* * @param platform * The structure representing Platform property filter consisting of value and comparison operator. * @return Returns a reference to this object so that method calls can be chained together. */ public Property withPlatform(PlatformInput platform) { setPlatform(platform); return this; } /** *

* The structure representing ViewOffNadir property filter containing a lower bound and upper bound. *

* * @param viewOffNadir * The structure representing ViewOffNadir property filter containing a lower bound and upper bound. */ public void setViewOffNadir(ViewOffNadirInput viewOffNadir) { this.viewOffNadir = viewOffNadir; } /** *

* The structure representing ViewOffNadir property filter containing a lower bound and upper bound. *

* * @return The structure representing ViewOffNadir property filter containing a lower bound and upper bound. */ public ViewOffNadirInput getViewOffNadir() { return this.viewOffNadir; } /** *

* The structure representing ViewOffNadir property filter containing a lower bound and upper bound. *

* * @param viewOffNadir * The structure representing ViewOffNadir property filter containing a lower bound and upper bound. * @return Returns a reference to this object so that method calls can be chained together. */ public Property withViewOffNadir(ViewOffNadirInput viewOffNadir) { setViewOffNadir(viewOffNadir); return this; } /** *

* The structure representing ViewSunAzimuth property filter containing a lower bound and upper bound. *

* * @param viewSunAzimuth * The structure representing ViewSunAzimuth property filter containing a lower bound and upper bound. */ public void setViewSunAzimuth(ViewSunAzimuthInput viewSunAzimuth) { this.viewSunAzimuth = viewSunAzimuth; } /** *

* The structure representing ViewSunAzimuth property filter containing a lower bound and upper bound. *

* * @return The structure representing ViewSunAzimuth property filter containing a lower bound and upper bound. */ public ViewSunAzimuthInput getViewSunAzimuth() { return this.viewSunAzimuth; } /** *

* The structure representing ViewSunAzimuth property filter containing a lower bound and upper bound. *

* * @param viewSunAzimuth * The structure representing ViewSunAzimuth property filter containing a lower bound and upper bound. * @return Returns a reference to this object so that method calls can be chained together. */ public Property withViewSunAzimuth(ViewSunAzimuthInput viewSunAzimuth) { setViewSunAzimuth(viewSunAzimuth); return this; } /** *

* The structure representing ViewSunElevation property filter containing a lower bound and upper bound. *

* * @param viewSunElevation * The structure representing ViewSunElevation property filter containing a lower bound and upper bound. */ public void setViewSunElevation(ViewSunElevationInput viewSunElevation) { this.viewSunElevation = viewSunElevation; } /** *

* The structure representing ViewSunElevation property filter containing a lower bound and upper bound. *

* * @return The structure representing ViewSunElevation property filter containing a lower bound and upper bound. */ public ViewSunElevationInput getViewSunElevation() { return this.viewSunElevation; } /** *

* The structure representing ViewSunElevation property filter containing a lower bound and upper bound. *

* * @param viewSunElevation * The structure representing ViewSunElevation property filter containing a lower bound and upper bound. * @return Returns a reference to this object so that method calls can be chained together. */ public Property withViewSunElevation(ViewSunElevationInput viewSunElevation) { setViewSunElevation(viewSunElevation); 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 (getEoCloudCover() != null) sb.append("EoCloudCover: ").append(getEoCloudCover()).append(","); if (getLandsatCloudCoverLand() != null) sb.append("LandsatCloudCoverLand: ").append(getLandsatCloudCoverLand()).append(","); if (getPlatform() != null) sb.append("Platform: ").append(getPlatform()).append(","); if (getViewOffNadir() != null) sb.append("ViewOffNadir: ").append(getViewOffNadir()).append(","); if (getViewSunAzimuth() != null) sb.append("ViewSunAzimuth: ").append(getViewSunAzimuth()).append(","); if (getViewSunElevation() != null) sb.append("ViewSunElevation: ").append(getViewSunElevation()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Property == false) return false; Property other = (Property) obj; if (other.getEoCloudCover() == null ^ this.getEoCloudCover() == null) return false; if (other.getEoCloudCover() != null && other.getEoCloudCover().equals(this.getEoCloudCover()) == false) return false; if (other.getLandsatCloudCoverLand() == null ^ this.getLandsatCloudCoverLand() == null) return false; if (other.getLandsatCloudCoverLand() != null && other.getLandsatCloudCoverLand().equals(this.getLandsatCloudCoverLand()) == false) return false; if (other.getPlatform() == null ^ this.getPlatform() == null) return false; if (other.getPlatform() != null && other.getPlatform().equals(this.getPlatform()) == false) return false; if (other.getViewOffNadir() == null ^ this.getViewOffNadir() == null) return false; if (other.getViewOffNadir() != null && other.getViewOffNadir().equals(this.getViewOffNadir()) == false) return false; if (other.getViewSunAzimuth() == null ^ this.getViewSunAzimuth() == null) return false; if (other.getViewSunAzimuth() != null && other.getViewSunAzimuth().equals(this.getViewSunAzimuth()) == false) return false; if (other.getViewSunElevation() == null ^ this.getViewSunElevation() == null) return false; if (other.getViewSunElevation() != null && other.getViewSunElevation().equals(this.getViewSunElevation()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEoCloudCover() == null) ? 0 : getEoCloudCover().hashCode()); hashCode = prime * hashCode + ((getLandsatCloudCoverLand() == null) ? 0 : getLandsatCloudCoverLand().hashCode()); hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode()); hashCode = prime * hashCode + ((getViewOffNadir() == null) ? 0 : getViewOffNadir().hashCode()); hashCode = prime * hashCode + ((getViewSunAzimuth() == null) ? 0 : getViewSunAzimuth().hashCode()); hashCode = prime * hashCode + ((getViewSunElevation() == null) ? 0 : getViewSunElevation().hashCode()); return hashCode; } @Override public Property clone() { try { return (Property) 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.sagemakergeospatial.model.transform.PropertyMarshaller.getInstance().marshall(this, protocolMarshaller); } }