com.launchkey.sdk.transport.domain.DirectoryV3DevicesPostRequest Maven / Gradle / Ivy
Show all versions of launchkey-sdk Show documentation
/**
* Copyright 2017 iovation, Inc.
*
* Licensed under the MIT License.
* You may not use this file except in compliance with the License.
* A copy of the License is located in the "LICENSE.txt" 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.launchkey.sdk.transport.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
public class DirectoryV3DevicesPostRequest {
public final String identifier;
public DirectoryV3DevicesPostRequest(String identifier) {
this.identifier = identifier;
}
@JsonProperty("identifier")
public String getIdentifier() {
return identifier;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof DirectoryV3DevicesPostRequest)) return false;
DirectoryV3DevicesPostRequest that = (DirectoryV3DevicesPostRequest) o;
return getIdentifier() != null ? getIdentifier().equals(that.getIdentifier()) : that.getIdentifier() == null;
}
@Override
public int hashCode() {
return getIdentifier() != null ? getIdentifier().hashCode() : 0;
}
@Override
public String toString() {
return "DirectoryV3DevicesPostRequest{" +
"identifier='" + identifier + '\'' +
'}';
}
}