Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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.route53.model;
 

A complex type that describes change information about changes made to your hosted zone.

This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

 
 public class ChangeInfo implements SerializableCloneable {

    
The ID of the request. Use this ID to track when the change has completed across all Amazon Route 53 DNS servers.

Constraints:
Length: 0 - 32

 
     private String id;

    
The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

Valid Values: PENDING | INSYNC

Constraints:
Allowed Values: PENDING, INSYNC

 
     private String status;

    
The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). The Z after the time indicates that the time is listed in Coordinated Universal Time (UTC), which is synonymous with Greenwich Mean Time in this context.
 
     private java.util.Date submittedAt;

    
A complex type that describes change information about changes made to your hosted zone.

This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

Constraints:
Length: 0 - 256

 
     private String comment;

    
Default constructor for a new ChangeInfo object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.
 
     public ChangeInfo() {}
    
    
Constructs a new ChangeInfo object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
id The ID of the request. Use this ID to track when the change has completed across all Amazon Route 53 DNS servers.
status The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

Valid Values: PENDING | INSYNC

submittedAt The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). The Z after the time indicates that the time is listed in Coordinated Universal Time (UTC), which is synonymous with Greenwich Mean Time in this context.
 
     public ChangeInfo(String idString statusjava.util.Date submittedAt) {
         setId(id);
         setStatus(status);
         setSubmittedAt(submittedAt);
     }

    
Constructs a new ChangeInfo object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
id The ID of the request. Use this ID to track when the change has completed across all Amazon Route 53 DNS servers.
status The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

Valid Values: PENDING | INSYNC

submittedAt The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). The Z after the time indicates that the time is listed in Coordinated Universal Time (UTC), which is synonymous with Greenwich Mean Time in this context.
    public ChangeInfo(String idChangeStatus statusjava.util.Date submittedAt) {
        this. = id;
        this. = status.toString();
        this. = submittedAt;
    }

    
The ID of the request. Use this ID to track when the change has completed across all Amazon Route 53 DNS servers.

Constraints:
Length: 0 - 32

Returns:
The ID of the request. Use this ID to track when the change has completed across all Amazon Route 53 DNS servers.
    public String getId() {
        return ;
    }
    
    
The ID of the request. Use this ID to track when the change has completed across all Amazon Route 53 DNS servers.

Constraints:
Length: 0 - 32

Parameters:
id The ID of the request. Use this ID to track when the change has completed across all Amazon Route 53 DNS servers.
    public void setId(String id) {
        this. = id;
    }
    
    
The ID of the request. Use this ID to track when the change has completed across all Amazon Route 53 DNS servers.

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

Constraints:
Length: 0 - 32

Parameters:
id The ID of the request. Use this ID to track when the change has completed across all Amazon Route 53 DNS servers.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ChangeInfo withId(String id) {
        this. = id;
        return this;
    }

    
The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

Valid Values: PENDING | INSYNC

Constraints:
Allowed Values: PENDING, INSYNC

Returns:
The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

Valid Values: PENDING | INSYNC

See also:
ChangeStatus
    public String getStatus() {
        return ;
    }
    
    
The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

Valid Values: PENDING | INSYNC

Constraints:
Allowed Values: PENDING, INSYNC

Parameters:
status The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

Valid Values: PENDING | INSYNC

See also:
ChangeStatus
    public void setStatus(String status) {
        this. = status;
    }
    
    
The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

Valid Values: PENDING | INSYNC

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

Constraints:
Allowed Values: PENDING, INSYNC

Parameters:
status The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

Valid Values: PENDING | INSYNC

Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ChangeStatus
    public ChangeInfo withStatus(String status) {
        this. = status;
        return this;
    }

    
The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

Valid Values: PENDING | INSYNC

Constraints:
Allowed Values: PENDING, INSYNC

Parameters:
status The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

Valid Values: PENDING | INSYNC

See also:
ChangeStatus
    public void setStatus(ChangeStatus status) {
        this. = status.toString();
    }
    
    
The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

Valid Values: PENDING | INSYNC

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

Constraints:
Allowed Values: PENDING, INSYNC

Parameters:
status The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

Valid Values: PENDING | INSYNC

Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ChangeStatus
    public ChangeInfo withStatus(ChangeStatus status) {
        this. = status.toString();
        return this;
    }

    
The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). The Z after the time indicates that the time is listed in Coordinated Universal Time (UTC), which is synonymous with Greenwich Mean Time in this context.

Returns:
The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). The Z after the time indicates that the time is listed in Coordinated Universal Time (UTC), which is synonymous with Greenwich Mean Time in this context.
    public java.util.Date getSubmittedAt() {
        return ;
    }
    
    
The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). The Z after the time indicates that the time is listed in Coordinated Universal Time (UTC), which is synonymous with Greenwich Mean Time in this context.

Parameters:
submittedAt The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). The Z after the time indicates that the time is listed in Coordinated Universal Time (UTC), which is synonymous with Greenwich Mean Time in this context.
    public void setSubmittedAt(java.util.Date submittedAt) {
        this. = submittedAt;
    }
    
    
The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). The Z after the time indicates that the time is listed in Coordinated Universal Time (UTC), which is synonymous with Greenwich Mean Time in this context.

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

Parameters:
submittedAt The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). The Z after the time indicates that the time is listed in Coordinated Universal Time (UTC), which is synonymous with Greenwich Mean Time in this context.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ChangeInfo withSubmittedAt(java.util.Date submittedAt) {
        this. = submittedAt;
        return this;
    }

    
A complex type that describes change information about changes made to your hosted zone.

This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

Constraints:
Length: 0 - 256

Returns:
A complex type that describes change information about changes made to your hosted zone.

This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

    public String getComment() {
        return ;
    }
    
    
A complex type that describes change information about changes made to your hosted zone.

This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

Constraints:
Length: 0 - 256

Parameters:
comment A complex type that describes change information about changes made to your hosted zone.

This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

    public void setComment(String comment) {
        this. = comment;
    }
    
    
A complex type that describes change information about changes made to your hosted zone.

This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

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

Constraints:
Length: 0 - 256

Parameters:
comment A complex type that describes change information about changes made to your hosted zone.

This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

Returns:
A reference to this updated object so that method calls can be chained together.
    public ChangeInfo withComment(String comment) {
        this. = comment;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getId() != nullsb.append("Id: " + getId() + ",");
        if (getStatus() != nullsb.append("Status: " + getStatus() + ",");
        if (getSubmittedAt() != nullsb.append("SubmittedAt: " + getSubmittedAt() + ",");
        if (getComment() != nullsb.append("Comment: " + getComment() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); 
        hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); 
        hashCode = prime * hashCode + ((getSubmittedAt() == null) ? 0 : getSubmittedAt().hashCode()); 
        hashCode = prime * hashCode + ((getComment() == null) ? 0 : getComment().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ChangeInfo == falsereturn false;
        ChangeInfo other = (ChangeInfo)obj;
        
        if (other.getId() == null ^ this.getId() == nullreturn false;
        if (other.getId() != null && other.getId().equals(this.getId()) == falsereturn false
        if (other.getStatus() == null ^ this.getStatus() == nullreturn false;
        if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == falsereturn false
        if (other.getSubmittedAt() == null ^ this.getSubmittedAt() == nullreturn false;
        if (other.getSubmittedAt() != null && other.getSubmittedAt().equals(this.getSubmittedAt()) == falsereturn false
        if (other.getComment() == null ^ this.getComment() == nullreturn false;
        if (other.getComment() != null && other.getComment().equals(this.getComment()) == falsereturn false
        return true;
    }
    
    @Override
    public ChangeInfo clone() {
        try {
            return (ChangeInfosuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X