org.hyperledger.acy_py.generated.model.TransactionJobs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aries-client-python Show documentation
Show all versions of aries-client-python Show documentation
Aries Cloud Agent - Python: Java client implementation
/*
* aca-py client
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v0.7.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.hyperledger.acy_py.generated.model;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
/**
* TransactionJobs
*/
@lombok.Data
@lombok.AllArgsConstructor
@lombok.NoArgsConstructor
@lombok.Builder
public class TransactionJobs {
/**
* My transaction related job
*/
@JsonAdapter(TransactionMyJobEnum.Adapter.class)
public enum TransactionMyJobEnum {
TRANSACTION_AUTHOR("TRANSACTION_AUTHOR"),
TRANSACTION_ENDORSER("TRANSACTION_ENDORSER"),
RESET("reset");
private String value;
TransactionMyJobEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static TransactionMyJobEnum fromValue(String value) {
for (TransactionMyJobEnum b : TransactionMyJobEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final TransactionMyJobEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public TransactionMyJobEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return TransactionMyJobEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_TRANSACTION_MY_JOB = "transaction_my_job";
@SerializedName(SERIALIZED_NAME_TRANSACTION_MY_JOB)
private TransactionMyJobEnum transactionMyJob;
/**
* Their transaction related job
*/
@JsonAdapter(TransactionTheirJobEnum.Adapter.class)
public enum TransactionTheirJobEnum {
TRANSACTION_AUTHOR("TRANSACTION_AUTHOR"),
TRANSACTION_ENDORSER("TRANSACTION_ENDORSER"),
RESET("reset");
private String value;
TransactionTheirJobEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static TransactionTheirJobEnum fromValue(String value) {
for (TransactionTheirJobEnum b : TransactionTheirJobEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final TransactionTheirJobEnum enumeration)
throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public TransactionTheirJobEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return TransactionTheirJobEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_TRANSACTION_THEIR_JOB = "transaction_their_job";
@SerializedName(SERIALIZED_NAME_TRANSACTION_THEIR_JOB)
private TransactionTheirJobEnum transactionTheirJob;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy