
com.amazon.ask.smapi.model.v1.Links Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ask-smapi-model Show documentation
Show all versions of ask-smapi-model Show documentation
Contains models and api clients for Alexa
The newest version!
/*
* Copyright 2019 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.amazon.ask.smapi.model.v1;
import java.util.Objects;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Links for the API navigation.
*/
@JsonDeserialize(builder = Links.Builder.class)
public final class Links {
@JsonProperty("self")
private com.amazon.ask.smapi.model.v1.Link self = null;
@JsonProperty("next")
private com.amazon.ask.smapi.model.v1.Link next = null;
private Links() {
}
public static Builder builder() {
return new Builder();
}
private Links(Builder builder) {
if (builder.self != null) {
this.self = builder.self;
}
if (builder.next != null) {
this.next = builder.next;
}
}
/**
* Get self
* @return self
**/
@JsonProperty("self")
public com.amazon.ask.smapi.model.v1.Link getSelf() {
return self;
}
/**
* Get next
* @return next
**/
@JsonProperty("next")
public com.amazon.ask.smapi.model.v1.Link getNext() {
return next;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Links v1Links = (Links) o;
return Objects.equals(this.self, v1Links.self) &&
Objects.equals(this.next, v1Links.next);
}
@Override
public int hashCode() {
return Objects.hash(self, next);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Links {\n");
sb.append(" self: ").append(toIndentedString(self)).append("\n");
sb.append(" next: ").append(toIndentedString(next)).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 ");
}
public static class Builder {
private com.amazon.ask.smapi.model.v1.Link self;
private com.amazon.ask.smapi.model.v1.Link next;
private Builder() {}
@JsonProperty("self")
public Builder withSelf(com.amazon.ask.smapi.model.v1.Link self) {
this.self = self;
return this;
}
@JsonProperty("next")
public Builder withNext(com.amazon.ask.smapi.model.v1.Link next) {
this.next = next;
return this;
}
public Links build() {
return new Links(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy