All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.athenz.msd.TransportPolicyValidationRequest Maven / Gradle / Ivy

The newest version!
//
// This file generated by rdl 1.5.2. Do not modify!
//

package com.yahoo.athenz.msd;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.yahoo.rdl.*;

//
// TransportPolicyValidationRequest - Transport policy request object to be
// validated
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class TransportPolicyValidationRequest {
    public TransportPolicyEntitySelector entitySelector;
    public TransportPolicyPeer peer;
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public Long id;
    public TransportPolicyTrafficDirection trafficDirection;

    public TransportPolicyValidationRequest setEntitySelector(TransportPolicyEntitySelector entitySelector) {
        this.entitySelector = entitySelector;
        return this;
    }
    public TransportPolicyEntitySelector getEntitySelector() {
        return entitySelector;
    }
    public TransportPolicyValidationRequest setPeer(TransportPolicyPeer peer) {
        this.peer = peer;
        return this;
    }
    public TransportPolicyPeer getPeer() {
        return peer;
    }
    public TransportPolicyValidationRequest setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getId() {
        return id;
    }
    public TransportPolicyValidationRequest setTrafficDirection(TransportPolicyTrafficDirection trafficDirection) {
        this.trafficDirection = trafficDirection;
        return this;
    }
    public TransportPolicyTrafficDirection getTrafficDirection() {
        return trafficDirection;
    }

    @Override
    public boolean equals(Object another) {
        if (this != another) {
            if (another == null || another.getClass() != TransportPolicyValidationRequest.class) {
                return false;
            }
            TransportPolicyValidationRequest a = (TransportPolicyValidationRequest) another;
            if (entitySelector == null ? a.entitySelector != null : !entitySelector.equals(a.entitySelector)) {
                return false;
            }
            if (peer == null ? a.peer != null : !peer.equals(a.peer)) {
                return false;
            }
            if (id == null ? a.id != null : !id.equals(a.id)) {
                return false;
            }
            if (trafficDirection == null ? a.trafficDirection != null : !trafficDirection.equals(a.trafficDirection)) {
                return false;
            }
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy