com.iovation.launchkey.sdk.transport.domain.ServicePolicyPutRequest Maven / Gradle / Ivy
Show all versions of 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.iovation.launchkey.sdk.transport.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.UUID;
@JsonPropertyOrder({"service_id", "policy"})
public class ServicePolicyPutRequest {
private final UUID serviceId;
private final Policy policy;
public ServicePolicyPutRequest(UUID serviceId, Policy policy) {
this.serviceId = serviceId;
this.policy = policy;
}
@JsonProperty("service_id")
public UUID getServiceId() {
return serviceId;
}
@JsonProperty("policy")
public Policy getPolicy() {
return policy;
}
}