001package org.anarres.qemu.qapi.api;
002
003import com.fasterxml.jackson.annotation.JsonInclude;
004import com.fasterxml.jackson.annotation.JsonProperty;
005import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
006import javax.annotation.CheckForNull;
007import javax.annotation.Nonnull;
008import org.anarres.qemu.qapi.common.*;
009
010/**
011 * Autogenerated class.
012 *
013 * <pre>QApiCommandDescriptor{name=set_password, returns=null, data={protocol=str, password=str, *connected=str}}</pre>
014 */
015// QApiCommandDescriptor{name=set_password, returns=null, data={protocol=str, password=str, *connected=str}}
016public class SetPasswordCommand extends QApiCommand<SetPasswordCommand.Arguments, SetPasswordCommand.Response> {
017        /** Compound arguments to a SetPasswordCommand. */
018        @JsonInclude(JsonInclude.Include.NON_EMPTY)
019        public static class Arguments {
020
021                @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")
022                @JsonProperty("protocol")
023                @Nonnull
024                public java.lang.String protocol;
025                @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")
026                @JsonProperty("password")
027                @Nonnull
028                public java.lang.String password;
029                @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")
030                @JsonProperty("connected")
031                @CheckForNull
032                public java.lang.String connected;
033
034                public Arguments() {
035                }
036
037                public Arguments(java.lang.String protocol, java.lang.String password, java.lang.String connected) {
038                        this.protocol = protocol;
039                        this.password = password;
040                        this.connected = connected;
041                }
042        }
043
044        /** Response to a SetPasswordCommand. */
045        public static class Response extends QApiResponse<java.lang.Void> {
046        }
047
048        /** Constructs a new SetPasswordCommand. */
049        public SetPasswordCommand(@Nonnull SetPasswordCommand.Arguments argument) {
050                super("set_password", Response.class, argument);
051        }
052
053        /** Constructs a new SetPasswordCommand. */
054        public SetPasswordCommand(java.lang.String protocol, java.lang.String password, java.lang.String connected) {
055                this(new Arguments(protocol, password, connected));
056        }
057}