io.nem.sdk.infrastructure.NamespaceInfoDTO Maven / Gradle / Ivy
/*
* Copyright 2018 NEM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License 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.
*/
/*
* NIS2 API
* This document defines all the nis2 api routes and behaviour
*
* OpenAPI spec version: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.nem.sdk.infrastructure;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/**
* NamespaceInfoDTO
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-12-19T19:07:40.115Z")
class NamespaceInfoDTO {
@SerializedName("meta")
private NamespaceMosaicMetaDTO meta = null;
@SerializedName("namespace")
private NamespaceDTO namespace = null;
public NamespaceInfoDTO meta(NamespaceMosaicMetaDTO meta) {
this.meta = meta;
return this;
}
/**
* Get meta
*
* @return meta
**/
@ApiModelProperty(required = true, value = "")
public NamespaceMosaicMetaDTO getMeta() {
return meta;
}
public void setMeta(NamespaceMosaicMetaDTO meta) {
this.meta = meta;
}
public NamespaceInfoDTO namespace(NamespaceDTO namespace) {
this.namespace = namespace;
return this;
}
/**
* Get namespace
*
* @return namespace
**/
@ApiModelProperty(required = true, value = "")
public NamespaceDTO getNamespace() {
return namespace;
}
public void setNamespace(NamespaceDTO namespace) {
this.namespace = namespace;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NamespaceInfoDTO namespaceInfoDTO = (NamespaceInfoDTO) o;
return Objects.equals(this.meta, namespaceInfoDTO.meta) &&
Objects.equals(this.namespace, namespaceInfoDTO.namespace);
}
@Override
public int hashCode() {
return Objects.hash(meta, namespace);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NamespaceInfoDTO {\n");
sb.append(" meta: ").append(toIndentedString(meta)).append("\n");
sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy