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

com.urbanairship.api.channel.model.ChannelAttributesResponse Maven / Gradle / Ivy

There is a newer version: 9.4.2
Show newest version
package com.urbanairship.api.channel.model;

import java.util.Optional;

public class ChannelAttributesResponse {
    private final boolean ok;
    Optional warning;

    private ChannelAttributesResponse(Builder builder) {
        this.ok = builder.ok;
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public boolean isOk() {
        return ok;
    }

    public Optional getWarning() {
        return warning;
    }

    public static class Builder {
        boolean ok;
        String warning;

        public Builder setOk(boolean ok) {
            this.ok = ok;
            return this;
        }

        public Builder setWarning(String warning) {
            this.warning = warning;
            return this;
        }

        public ChannelAttributesResponse build() {
            return new ChannelAttributesResponse(this);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy