com.twilio.jwt.accesstoken.IpMessagingGrant Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twilio Show documentation
Show all versions of twilio Show documentation
Twilio Java Helper Library
package com.twilio.jwt.accesstoken;
/**
* Grant used to access Twilio IP Messaging.
*
*
* For more information see:
*
* https://www.twilio.com/docs/api/rest/access-tokens
*
*
*/
@Deprecated
public class IpMessagingGrant implements Grant {
private String serviceSid;
private String deploymentRoleSid;
private String pushCredentialSid;
private String endpointId;
public String getServiceSid() {
return serviceSid;
}
public IpMessagingGrant setServiceSid(String serviceSid) {
this.serviceSid = serviceSid;
return this;
}
public String getPushCredentialSid() {
return pushCredentialSid;
}
public IpMessagingGrant setPushCredentialSid(String pushCredentialSid) {
this.pushCredentialSid = pushCredentialSid;
return this;
}
public String getDeploymentRoleSid() {
return deploymentRoleSid;
}
public IpMessagingGrant setDeploymentRoleSid(String deploymentRoleSid) {
this.deploymentRoleSid = deploymentRoleSid;
return this;
}
public String getEndpointId() {
return endpointId;
}
public IpMessagingGrant setEndpointId(String endpointId) {
this.endpointId = endpointId;
return this;
}
public String getGrantKey() {
return "ip_messaging";
}
public Object getPayload() {
return new Payload(this);
}
@SuppressWarnings("checkstyle:membername")
public class Payload {
public final String service_sid;
public final String deployment_role_sid;
public final String endpoint_id;
public final String push_credential_sid;
/**
* Create the grant payload.
*
* @param grant IP Messaging grant
*/
public Payload(IpMessagingGrant grant) {
this.service_sid = grant.serviceSid;
this.deployment_role_sid = grant.deploymentRoleSid;
this.endpoint_id = grant.endpointId;
this.push_credential_sid = grant.pushCredentialSid;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy