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=expire_password, returns=null, data={protocol=str, time=str}}</pre> 014 */ 015// QApiCommandDescriptor{name=expire_password, returns=null, data={protocol=str, time=str}} 016public class ExpirePasswordCommand extends QApiCommand<ExpirePasswordCommand.Arguments, ExpirePasswordCommand.Response> { 017 /** Compound arguments to a ExpirePasswordCommand. */ 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("time") 027 @Nonnull 028 public java.lang.String time; 029 030 public Arguments() { 031 } 032 033 public Arguments(java.lang.String protocol, java.lang.String time) { 034 this.protocol = protocol; 035 this.time = time; 036 } 037 } 038 039 /** Response to a ExpirePasswordCommand. */ 040 public static class Response extends QApiResponse<java.lang.Void> { 041 } 042 043 /** Constructs a new ExpirePasswordCommand. */ 044 public ExpirePasswordCommand(@Nonnull ExpirePasswordCommand.Arguments argument) { 045 super("expire_password", Response.class, argument); 046 } 047 048 /** Constructs a new ExpirePasswordCommand. */ 049 public ExpirePasswordCommand(java.lang.String protocol, java.lang.String time) { 050 this(new Arguments(protocol, time)); 051 } 052}