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

com.logmein.gotowebinar.api.model.SecretKeyResponse Maven / Gradle / Ivy

There is a newer version: 2.9.0
Show newest version
/*
 * © 2017 LogMeIn, Inc. All Rights Reserved.
 * All rights reserved.
 * 
 * This software is distributed under the terms and conditions of the
 * LogMeIn SDK License Agreement. Please see file LICENSE for details.
 * 
 * Auto-generated file.
 */


package com.logmein.gotowebinar.api.model;


import com.logmein.gotowebinar.api.common.JsonUtil;

/**
 * Representation of a secret key
 */
public class SecretKeyResponse {

    /* The unique identifier for the secret key */
    private Integer id = null;

    /* The value of the secret key. This is used for generating a signature of events posted to the callback url */
    private String value = null;

    /* A date time in ISO8601 format, e.g. 2019-07-01T22:00:00Z. The secret key will be activated at the given date */
    private String validFrom = null;

    /**
     * @return The unique identifier for the secret key
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id The unique identifier for the secret key
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return The value of the secret key. This is used for generating a signature of events posted to the callback url
     */
    public String getValue() {
        return value;
    }

    /**
     * @param value The value of the secret key. This is used for generating a signature of events posted to the callback url
     */
    public void setValue(String value) {
        this.value = value;
    }

    /**
     * @return A date time in ISO8601 format, e.g. 2019-07-01T22:00:00Z. The secret key will be activated at the given date
     */
    public String getValidFrom() {
        return validFrom;
    }

    /**
     * @param validFrom A date time in ISO8601 format, e.g. 2019-07-01T22:00:00Z. The secret key will be activated at the given date
     */
    public void setValidFrom(String validFrom) {
        this.validFrom = validFrom;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class SecretKeyResponse {\n");
        String idString = JsonUtil.Stringify(id);
        if (idString != null && !idString.isEmpty())
            sb.append(String.format("  id: %s\n", idString));
        String valueString = JsonUtil.Stringify(value);
        if (valueString != null && !valueString.isEmpty())
            sb.append(String.format("  value: %s\n", valueString));
        String validFromString = JsonUtil.Stringify(validFrom);
        if (validFromString != null && !validFromString.isEmpty())
            sb.append(String.format("  validFrom: %s\n", validFromString));
        sb.append("}\n");
        return sb.toString();
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy