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

com.amazonaws.services.scheduler.model.GetScheduleGroupResult Maven / Gradle / Ivy

Go to download

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

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

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* The Amazon Resource Name (ARN) of the schedule group. *

*/ private String arn; /** *

* The time at which the schedule group was created. *

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

* The time at which the schedule group was last modified. *

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

* The name of the schedule group. *

*/ private String name; /** *

* Specifies the state of the schedule group. *

*/ private String state; /** *

* The Amazon Resource Name (ARN) of the schedule group. *

* * @param arn * The Amazon Resource Name (ARN) of the schedule group. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of the schedule group. *

* * @return The Amazon Resource Name (ARN) of the schedule group. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of the schedule group. *

* * @param arn * The Amazon Resource Name (ARN) of the schedule group. * @return Returns a reference to this object so that method calls can be chained together. */ public GetScheduleGroupResult withArn(String arn) { setArn(arn); return this; } /** *

* The time at which the schedule group was created. *

* * @param creationDate * The time at which the schedule group was created. */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** *

* The time at which the schedule group was created. *

* * @return The time at which the schedule group was created. */ public java.util.Date getCreationDate() { return this.creationDate; } /** *

* The time at which the schedule group was created. *

* * @param creationDate * The time at which the schedule group was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetScheduleGroupResult withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); return this; } /** *

* The time at which the schedule group was last modified. *

* * @param lastModificationDate * The time at which the schedule group was last modified. */ public void setLastModificationDate(java.util.Date lastModificationDate) { this.lastModificationDate = lastModificationDate; } /** *

* The time at which the schedule group was last modified. *

* * @return The time at which the schedule group was last modified. */ public java.util.Date getLastModificationDate() { return this.lastModificationDate; } /** *

* The time at which the schedule group was last modified. *

* * @param lastModificationDate * The time at which the schedule group was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public GetScheduleGroupResult withLastModificationDate(java.util.Date lastModificationDate) { setLastModificationDate(lastModificationDate); return this; } /** *

* The name of the schedule group. *

* * @param name * The name of the schedule group. */ public void setName(String name) { this.name = name; } /** *

* The name of the schedule group. *

* * @return The name of the schedule group. */ public String getName() { return this.name; } /** *

* The name of the schedule group. *

* * @param name * The name of the schedule group. * @return Returns a reference to this object so that method calls can be chained together. */ public GetScheduleGroupResult withName(String name) { setName(name); return this; } /** *

* Specifies the state of the schedule group. *

* * @param state * Specifies the state of the schedule group. * @see ScheduleGroupState */ public void setState(String state) { this.state = state; } /** *

* Specifies the state of the schedule group. *

* * @return Specifies the state of the schedule group. * @see ScheduleGroupState */ public String getState() { return this.state; } /** *

* Specifies the state of the schedule group. *

* * @param state * Specifies the state of the schedule group. * @return Returns a reference to this object so that method calls can be chained together. * @see ScheduleGroupState */ public GetScheduleGroupResult withState(String state) { setState(state); return this; } /** *

* Specifies the state of the schedule group. *

* * @param state * Specifies the state of the schedule group. * @return Returns a reference to this object so that method calls can be chained together. * @see ScheduleGroupState */ public GetScheduleGroupResult withState(ScheduleGroupState state) { this.state = state.toString(); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getLastModificationDate() != null) sb.append("LastModificationDate: ").append(getLastModificationDate()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getState() != null) sb.append("State: ").append(getState()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetScheduleGroupResult == false) return false; GetScheduleGroupResult other = (GetScheduleGroupResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; if (other.getLastModificationDate() == null ^ this.getLastModificationDate() == null) return false; if (other.getLastModificationDate() != null && other.getLastModificationDate().equals(this.getLastModificationDate()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getLastModificationDate() == null) ? 0 : getLastModificationDate().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); return hashCode; } @Override public GetScheduleGroupResult clone() { try { return (GetScheduleGroupResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy