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

com.amazonaws.services.location.model.ListTrackersResponseEntry Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
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.location.model;

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

/**
 * 

* Contains the tracker resource details. *

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

* The name of the tracker resource. *

*/ private String trackerName; /** *

* The description for the tracker resource. *

*/ private String description; /** *

* Always returns RequestBasedUsage. *

*/ @Deprecated private String pricingPlan; /** *

* No longer used. Always returns an empty string. *

*/ @Deprecated private String pricingPlanDataSource; /** *

* The timestamp for when the tracker resource was created in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

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

* The timestamp at which the device's position was determined. Uses ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

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

* The name of the tracker resource. *

* * @param trackerName * The name of the tracker resource. */ public void setTrackerName(String trackerName) { this.trackerName = trackerName; } /** *

* The name of the tracker resource. *

* * @return The name of the tracker resource. */ public String getTrackerName() { return this.trackerName; } /** *

* The name of the tracker resource. *

* * @param trackerName * The name of the tracker resource. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrackersResponseEntry withTrackerName(String trackerName) { setTrackerName(trackerName); return this; } /** *

* The description for the tracker resource. *

* * @param description * The description for the tracker resource. */ public void setDescription(String description) { this.description = description; } /** *

* The description for the tracker resource. *

* * @return The description for the tracker resource. */ public String getDescription() { return this.description; } /** *

* The description for the tracker resource. *

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

* Always returns RequestBasedUsage. *

* * @param pricingPlan * Always returns RequestBasedUsage. * @see PricingPlan */ @Deprecated public void setPricingPlan(String pricingPlan) { this.pricingPlan = pricingPlan; } /** *

* Always returns RequestBasedUsage. *

* * @return Always returns RequestBasedUsage. * @see PricingPlan */ @Deprecated public String getPricingPlan() { return this.pricingPlan; } /** *

* Always returns RequestBasedUsage. *

* * @param pricingPlan * Always returns RequestBasedUsage. * @return Returns a reference to this object so that method calls can be chained together. * @see PricingPlan */ @Deprecated public ListTrackersResponseEntry withPricingPlan(String pricingPlan) { setPricingPlan(pricingPlan); return this; } /** *

* Always returns RequestBasedUsage. *

* * @param pricingPlan * Always returns RequestBasedUsage. * @return Returns a reference to this object so that method calls can be chained together. * @see PricingPlan */ @Deprecated public ListTrackersResponseEntry withPricingPlan(PricingPlan pricingPlan) { this.pricingPlan = pricingPlan.toString(); return this; } /** *

* No longer used. Always returns an empty string. *

* * @param pricingPlanDataSource * No longer used. Always returns an empty string. */ @Deprecated public void setPricingPlanDataSource(String pricingPlanDataSource) { this.pricingPlanDataSource = pricingPlanDataSource; } /** *

* No longer used. Always returns an empty string. *

* * @return No longer used. Always returns an empty string. */ @Deprecated public String getPricingPlanDataSource() { return this.pricingPlanDataSource; } /** *

* No longer used. Always returns an empty string. *

* * @param pricingPlanDataSource * No longer used. Always returns an empty string. * @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public ListTrackersResponseEntry withPricingPlanDataSource(String pricingPlanDataSource) { setPricingPlanDataSource(pricingPlanDataSource); return this; } /** *

* The timestamp for when the tracker resource was created in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @param createTime * The timestamp for when the tracker resource was created in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. */ public void setCreateTime(java.util.Date createTime) { this.createTime = createTime; } /** *

* The timestamp for when the tracker resource was created in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @return The timestamp for when the tracker resource was created in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. */ public java.util.Date getCreateTime() { return this.createTime; } /** *

* The timestamp for when the tracker resource was created in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @param createTime * The timestamp for when the tracker resource was created in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrackersResponseEntry withCreateTime(java.util.Date createTime) { setCreateTime(createTime); return this; } /** *

* The timestamp at which the device's position was determined. Uses ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @param updateTime * The timestamp at which the device's position was determined. Uses ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. */ public void setUpdateTime(java.util.Date updateTime) { this.updateTime = updateTime; } /** *

* The timestamp at which the device's position was determined. Uses ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @return The timestamp at which the device's position was determined. Uses ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. */ public java.util.Date getUpdateTime() { return this.updateTime; } /** *

* The timestamp at which the device's position was determined. Uses ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @param updateTime * The timestamp at which the device's position was determined. Uses ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrackersResponseEntry withUpdateTime(java.util.Date updateTime) { setUpdateTime(updateTime); 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 (getTrackerName() != null) sb.append("TrackerName: ").append(getTrackerName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getPricingPlan() != null) sb.append("PricingPlan: ").append(getPricingPlan()).append(","); if (getPricingPlanDataSource() != null) sb.append("PricingPlanDataSource: ").append(getPricingPlanDataSource()).append(","); if (getCreateTime() != null) sb.append("CreateTime: ").append(getCreateTime()).append(","); if (getUpdateTime() != null) sb.append("UpdateTime: ").append(getUpdateTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListTrackersResponseEntry == false) return false; ListTrackersResponseEntry other = (ListTrackersResponseEntry) obj; if (other.getTrackerName() == null ^ this.getTrackerName() == null) return false; if (other.getTrackerName() != null && other.getTrackerName().equals(this.getTrackerName()) == 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.getPricingPlan() == null ^ this.getPricingPlan() == null) return false; if (other.getPricingPlan() != null && other.getPricingPlan().equals(this.getPricingPlan()) == false) return false; if (other.getPricingPlanDataSource() == null ^ this.getPricingPlanDataSource() == null) return false; if (other.getPricingPlanDataSource() != null && other.getPricingPlanDataSource().equals(this.getPricingPlanDataSource()) == false) return false; if (other.getCreateTime() == null ^ this.getCreateTime() == null) return false; if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == false) return false; if (other.getUpdateTime() == null ^ this.getUpdateTime() == null) return false; if (other.getUpdateTime() != null && other.getUpdateTime().equals(this.getUpdateTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTrackerName() == null) ? 0 : getTrackerName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getPricingPlan() == null) ? 0 : getPricingPlan().hashCode()); hashCode = prime * hashCode + ((getPricingPlanDataSource() == null) ? 0 : getPricingPlanDataSource().hashCode()); hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); hashCode = prime * hashCode + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); return hashCode; } @Override public ListTrackersResponseEntry clone() { try { return (ListTrackersResponseEntry) 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.location.model.transform.ListTrackersResponseEntryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy