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

pl.wrzasq.commons.aws.cloudformation.macro.CloudFormationMacroResponse Maven / Gradle / Ivy

// Generated by delombok at Tue Apr 06 13:14:34 UTC 2021
/*
 * This file is part of the pl.wrzasq.commons.
 *
 * @license http://mit-license.org/ The MIT license
 * @copyright 2020 © by Rafał Wrzeszcz - Wrzasq.pl.
 */
package pl.wrzasq.commons.aws.cloudformation.macro;

import java.util.Map;

/**
 * CloudFormation event response structure.
 */
public class CloudFormationMacroResponse {
    /**
     * OK status.
     */
    public static final String STATUS_SUCCESS = "SUCCESS";
    /**
     * Request ID.
     */
    private String requestId;
    /**
     * Operation status.
     */
    private String status;
    /**
     * Template fragment.
     */
    private Map fragment;

    @SuppressWarnings("all")
    @lombok.Generated
    public CloudFormationMacroResponse(final String requestId, final String status, final Map fragment) {
        this.requestId = requestId;
        this.status = status;
        this.fragment = fragment;
    }

    /**
     * Request ID.
     */
    @SuppressWarnings("all")
    @lombok.Generated
    public String getRequestId() {
        return this.requestId;
    }

    /**
     * Operation status.
     */
    @SuppressWarnings("all")
    @lombok.Generated
    public String getStatus() {
        return this.status;
    }

    /**
     * Template fragment.
     */
    @SuppressWarnings("all")
    @lombok.Generated
    public Map getFragment() {
        return this.fragment;
    }

    /**
     * Request ID.
     */
    @SuppressWarnings("all")
    @lombok.Generated
    public void setRequestId(final String requestId) {
        this.requestId = requestId;
    }

    /**
     * Operation status.
     */
    @SuppressWarnings("all")
    @lombok.Generated
    public void setStatus(final String status) {
        this.status = status;
    }

    /**
     * Template fragment.
     */
    @SuppressWarnings("all")
    @lombok.Generated
    public void setFragment(final Map fragment) {
        this.fragment = fragment;
    }

    @Override
    @SuppressWarnings("all")
    @lombok.Generated
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof CloudFormationMacroResponse)) return false;
        final CloudFormationMacroResponse other = (CloudFormationMacroResponse) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$requestId = this.getRequestId();
        final Object other$requestId = other.getRequestId();
        if (this$requestId == null ? other$requestId != null : !this$requestId.equals(other$requestId)) return false;
        final Object this$status = this.getStatus();
        final Object other$status = other.getStatus();
        if (this$status == null ? other$status != null : !this$status.equals(other$status)) return false;
        final Object this$fragment = this.getFragment();
        final Object other$fragment = other.getFragment();
        if (this$fragment == null ? other$fragment != null : !this$fragment.equals(other$fragment)) return false;
        return true;
    }

    @SuppressWarnings("all")
    @lombok.Generated
    protected boolean canEqual(final Object other) {
        return other instanceof CloudFormationMacroResponse;
    }

    @Override
    @SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $requestId = this.getRequestId();
        result = result * PRIME + ($requestId == null ? 43 : $requestId.hashCode());
        final Object $status = this.getStatus();
        result = result * PRIME + ($status == null ? 43 : $status.hashCode());
        final Object $fragment = this.getFragment();
        result = result * PRIME + ($fragment == null ? 43 : $fragment.hashCode());
        return result;
    }

    @Override
    @SuppressWarnings("all")
    @lombok.Generated
    public String toString() {
        return "CloudFormationMacroResponse(requestId=" + this.getRequestId() + ", status=" + this.getStatus() + ", fragment=" + this.getFragment() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy