com.logmein.gotowebinar.api.model.UserSubscription Maven / Gradle / Ivy
/*
* © 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;
/**
* Describes a single user subscription
*/
public class UserSubscription {
/* A HTTPs url that can accept posted events. It should return 200 OK for GET requests. */
private String callbackUrl = null;
/* Type of event of the webhook */
private String eventName = null;
/* Version of event being subscribed for */
private String eventVersion = null;
/* */
private Product product = null;
/* The unique identifier for the webhook */
private String webhookKey = null;
/* The unique identifier for the user subscription */
private String userSubscriptionKey = null;
/* */
private UserSubscriptionState userSubscriptionState = null;
/* */
private ActivationState activationState = null;
/* The create time of the webhook */
private String createTime = null;
/**
* @return A HTTPs url that can accept posted events. It should return 200 OK for GET requests.
*/
public String getCallbackUrl() {
return callbackUrl;
}
/**
* @param callbackUrl A HTTPs url that can accept posted events. It should return 200 OK for GET requests.
*/
public void setCallbackUrl(String callbackUrl) {
this.callbackUrl = callbackUrl;
}
/**
* @return Type of event of the webhook
*/
public String getEventName() {
return eventName;
}
/**
* @param eventName Type of event of the webhook
*/
public void setEventName(String eventName) {
this.eventName = eventName;
}
/**
* @return Version of event being subscribed for
*/
public String getEventVersion() {
return eventVersion;
}
/**
* @param eventVersion Version of event being subscribed for
*/
public void setEventVersion(String eventVersion) {
this.eventVersion = eventVersion;
}
/**
* @return
*/
public Product getProduct() {
return product;
}
/**
* @param product
*/
public void setProduct(Product product) {
this.product = product;
}
/**
* @return The unique identifier for the webhook
*/
public String getWebhookKey() {
return webhookKey;
}
/**
* @param webhookKey The unique identifier for the webhook
*/
public void setWebhookKey(String webhookKey) {
this.webhookKey = webhookKey;
}
/**
* @return The unique identifier for the user subscription
*/
public String getUserSubscriptionKey() {
return userSubscriptionKey;
}
/**
* @param userSubscriptionKey The unique identifier for the user subscription
*/
public void setUserSubscriptionKey(String userSubscriptionKey) {
this.userSubscriptionKey = userSubscriptionKey;
}
/**
* @return
*/
public UserSubscriptionState getUserSubscriptionState() {
return userSubscriptionState;
}
/**
* @param userSubscriptionState
*/
public void setUserSubscriptionState(UserSubscriptionState userSubscriptionState) {
this.userSubscriptionState = userSubscriptionState;
}
/**
* @return
*/
public ActivationState getActivationState() {
return activationState;
}
/**
* @param activationState
*/
public void setActivationState(ActivationState activationState) {
this.activationState = activationState;
}
/**
* @return The create time of the webhook
*/
public String getCreateTime() {
return createTime;
}
/**
* @param createTime The create time of the webhook
*/
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UserSubscription {\n");
String callbackUrlString = JsonUtil.Stringify(callbackUrl);
if (callbackUrlString != null && !callbackUrlString.isEmpty())
sb.append(String.format(" callbackUrl: %s\n", callbackUrlString));
String eventNameString = JsonUtil.Stringify(eventName);
if (eventNameString != null && !eventNameString.isEmpty())
sb.append(String.format(" eventName: %s\n", eventNameString));
String eventVersionString = JsonUtil.Stringify(eventVersion);
if (eventVersionString != null && !eventVersionString.isEmpty())
sb.append(String.format(" eventVersion: %s\n", eventVersionString));
String productString = JsonUtil.Stringify(product);
if (productString != null && !productString.isEmpty())
sb.append(String.format(" product: %s\n", productString));
String webhookKeyString = JsonUtil.Stringify(webhookKey);
if (webhookKeyString != null && !webhookKeyString.isEmpty())
sb.append(String.format(" webhookKey: %s\n", webhookKeyString));
String userSubscriptionKeyString = JsonUtil.Stringify(userSubscriptionKey);
if (userSubscriptionKeyString != null && !userSubscriptionKeyString.isEmpty())
sb.append(String.format(" userSubscriptionKey: %s\n", userSubscriptionKeyString));
String userSubscriptionStateString = JsonUtil.Stringify(userSubscriptionState);
if (userSubscriptionStateString != null && !userSubscriptionStateString.isEmpty())
sb.append(String.format(" userSubscriptionState: %s\n", userSubscriptionStateString));
String activationStateString = JsonUtil.Stringify(activationState);
if (activationStateString != null && !activationStateString.isEmpty())
sb.append(String.format(" activationState: %s\n", activationStateString));
String createTimeString = JsonUtil.Stringify(createTime);
if (createTimeString != null && !createTimeString.isEmpty())
sb.append(String.format(" createTime: %s\n", createTimeString));
sb.append("}\n");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy