
pl.wrzasq.commons.aws.cloudformation.macro.ResourcesDefinition Maven / Gradle / Ivy
// Generated by delombok at Wed Mar 25 03:28:41 UTC 2020
/*
* 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;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Generic structure of resource in section.
*/
public class ResourcesDefinition {
/**
* Resource type.
*/
@JsonProperty("Type")
private String type;
/**
* Condition handling.
*/
@JsonProperty("Condition")
private String condition;
/**
* Resource properties.
*/
@JsonProperty("Properties")
private Map properties;
@SuppressWarnings("all")
@lombok.Generated
public ResourcesDefinition() {
}
/**
* Resource type.
*/
@SuppressWarnings("all")
@lombok.Generated
public String getType() {
return this.type;
}
/**
* Condition handling.
*/
@SuppressWarnings("all")
@lombok.Generated
public String getCondition() {
return this.condition;
}
/**
* Resource properties.
*/
@SuppressWarnings("all")
@lombok.Generated
public Map getProperties() {
return this.properties;
}
/**
* Resource type.
*/
@JsonProperty("Type")
@SuppressWarnings("all")
@lombok.Generated
public void setType(final String type) {
this.type = type;
}
/**
* Condition handling.
*/
@JsonProperty("Condition")
@SuppressWarnings("all")
@lombok.Generated
public void setCondition(final String condition) {
this.condition = condition;
}
/**
* Resource properties.
*/
@JsonProperty("Properties")
@SuppressWarnings("all")
@lombok.Generated
public void setProperties(final Map properties) {
this.properties = properties;
}
@Override
@SuppressWarnings("all")
@lombok.Generated
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof ResourcesDefinition)) return false;
final ResourcesDefinition other = (ResourcesDefinition) o;
if (!other.canEqual((Object) this)) return false;
final Object this$type = this.getType();
final Object other$type = other.getType();
if (this$type == null ? other$type != null : !this$type.equals(other$type)) return false;
final Object this$condition = this.getCondition();
final Object other$condition = other.getCondition();
if (this$condition == null ? other$condition != null : !this$condition.equals(other$condition)) return false;
final Object this$properties = this.getProperties();
final Object other$properties = other.getProperties();
if (this$properties == null ? other$properties != null : !this$properties.equals(other$properties)) return false;
return true;
}
@SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final Object other) {
return other instanceof ResourcesDefinition;
}
@Override
@SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = 1;
final Object $type = this.getType();
result = result * PRIME + ($type == null ? 43 : $type.hashCode());
final Object $condition = this.getCondition();
result = result * PRIME + ($condition == null ? 43 : $condition.hashCode());
final Object $properties = this.getProperties();
result = result * PRIME + ($properties == null ? 43 : $properties.hashCode());
return result;
}
@Override
@SuppressWarnings("all")
@lombok.Generated
public String toString() {
return "ResourcesDefinition(type=" + this.getType() + ", condition=" + this.getCondition() + ", properties=" + this.getProperties() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy