com.adobe.target.delivery.v1.model.MobilePlatform Maven / Gradle / Ivy
/*
* Target delivery client
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*//*
* Copyright 2019 Adobe. All rights reserved.
* This file is licensed to you 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 REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*
* NOTE: This is an auto generated file. Do not edit directly.
*/
package com.adobe.target.delivery.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Mobile Platform should be specified when the channel is Mobile
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MobilePlatform {
@JsonProperty("deviceName")
private String deviceName;
@JsonProperty("deviceType")
private DeviceType deviceType = null;
@JsonProperty("platformType")
private MobilePlatformType platformType = null;
@JsonProperty("version")
private String version;
public MobilePlatform deviceName(String deviceName) {
this.deviceName = deviceName;
return this;
}
/**
* Optional field, added to help with device detection using device atlas. This is equivalent of a.DeviceName
* field passed in from Mobile SDK
*
* @return deviceName
**/
public String getDeviceName() {
return deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public MobilePlatform deviceType(DeviceType deviceType) {
this.deviceType = deviceType;
return this;
}
/**
* Get deviceType
*
* @return deviceType
**/
public DeviceType getDeviceType() {
return deviceType;
}
public void setDeviceType(DeviceType deviceType) {
this.deviceType = deviceType;
}
public MobilePlatform platformType(MobilePlatformType platformType) {
this.platformType = platformType;
return this;
}
/**
* Get platformType
*
* @return platformType
**/
public MobilePlatformType getPlatformType() {
return platformType;
}
public void setPlatformType(MobilePlatformType platformType) {
this.platformType = platformType;
}
public MobilePlatform version(String version) {
this.version = version;
return this;
}
/**
* If not specified - all activities with any platformVersion will be evaluated. If specified - only activities
* with the same platformVersion will be evaluated.
*
* @return version
**/
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MobilePlatform mobilePlatform = (MobilePlatform) o;
return Objects.equals(this.deviceName, mobilePlatform.deviceName) &&
Objects.equals(this.deviceType, mobilePlatform.deviceType) &&
Objects.equals(this.platformType, mobilePlatform.platformType) &&
Objects.equals(this.version, mobilePlatform.version);
}
@Override
public int hashCode() {
return Objects.hash(deviceName, deviceType, platformType, version);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MobilePlatform {\n");
sb.append(" deviceName: ").append(toIndentedString(deviceName)).append("\n");
sb.append(" deviceType: ").append(toIndentedString(deviceType)).append("\n");
sb.append(" platformType: ").append(toIndentedString(platformType)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy