/* * Copyright 2010-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.connect.model; import java.io.Serializable; /** *

* Information about the agent's status. *

*/ public class AgentStatusReference implements Serializable { /** *

* The start timestamp of the agent's status. *

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

* The Amazon Resource Name (ARN) of the agent's status. *

*/ private String statusArn; /** *

* The name of the agent status. *

*

* Constraints:
* Length: 1 - 127
*/ private String statusName; /** *

* The start timestamp of the agent's status. *

* * @return

* The start timestamp of the agent's status. *

*/ public java.util.Date getStatusStartTimestamp() { return statusStartTimestamp; } /** *

* The start timestamp of the agent's status. *

* * @param statusStartTimestamp

* The start timestamp of the agent's status. *

*/ public void setStatusStartTimestamp(java.util.Date statusStartTimestamp) { this.statusStartTimestamp = statusStartTimestamp; } /** *

* The start timestamp of the agent's status. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param statusStartTimestamp

* The start timestamp of the agent's status. *

* @return A reference to this updated object so that method calls can be * chained together. */ public AgentStatusReference withStatusStartTimestamp(java.util.Date statusStartTimestamp) { this.statusStartTimestamp = statusStartTimestamp; return this; } /** *

* The Amazon Resource Name (ARN) of the agent's status. *

* * @return

* The Amazon Resource Name (ARN) of the agent's status. *

*/ public String getStatusArn() { return statusArn; } /** *

* The Amazon Resource Name (ARN) of the agent's status. *

* * @param statusArn

* The Amazon Resource Name (ARN) of the agent's status. *

*/ public void setStatusArn(String statusArn) { this.statusArn = statusArn; } /** *

* The Amazon Resource Name (ARN) of the agent's status. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param statusArn

* The Amazon Resource Name (ARN) of the agent's status. *

* @return A reference to this updated object so that method calls can be * chained together. */ public AgentStatusReference withStatusArn(String statusArn) { this.statusArn = statusArn; return this; } /** *

* The name of the agent status. *

*

* Constraints:
* Length: 1 - 127
* * @return

* The name of the agent status. *

*/ public String getStatusName() { return statusName; } /** *

* The name of the agent status. *

*

* Constraints:
* Length: 1 - 127
* * @param statusName

* The name of the agent status. *

*/ public void setStatusName(String statusName) { this.statusName = statusName; } /** *

* The name of the agent status. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Length: 1 - 127
* * @param statusName

* The name of the agent status. *

* @return A reference to this updated object so that method calls can be * chained together. */ public AgentStatusReference withStatusName(String statusName) { this.statusName = statusName; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getStatusStartTimestamp() != null) sb.append("StatusStartTimestamp: " + getStatusStartTimestamp() + ","); if (getStatusArn() != null) sb.append("StatusArn: " + getStatusArn() + ","); if (getStatusName() != null) sb.append("StatusName: " + getStatusName()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatusStartTimestamp() == null) ? 0 : getStatusStartTimestamp().hashCode()); hashCode = prime * hashCode + ((getStatusArn() == null) ? 0 : getStatusArn().hashCode()); hashCode = prime * hashCode + ((getStatusName() == null) ? 0 : getStatusName().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AgentStatusReference == false) return false; AgentStatusReference other = (AgentStatusReference) obj; if (other.getStatusStartTimestamp() == null ^ this.getStatusStartTimestamp() == null) return false; if (other.getStatusStartTimestamp() != null && other.getStatusStartTimestamp().equals(this.getStatusStartTimestamp()) == false) return false; if (other.getStatusArn() == null ^ this.getStatusArn() == null) return false; if (other.getStatusArn() != null && other.getStatusArn().equals(this.getStatusArn()) == false) return false; if (other.getStatusName() == null ^ this.getStatusName() == null) return false; if (other.getStatusName() != null && other.getStatusName().equals(this.getStatusName()) == false) return false; return true; } }