br.com.moip.request.ConnectRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for Moip v2 APIs
package br.com.moip.request;
public class ConnectRequest {
private String client_id;
private String client_secret;
private String code;
private String redirect_uri;
private String grant_type;
private String refresh_token;
public ConnectRequest clientId(String clientId) {
this.client_id = clientId;
return this;
}
public ConnectRequest clientSecret(String clientSecret) {
this.client_secret = clientSecret;
return this;
}
public ConnectRequest code(String code) {
this.code = code;
return this;
}
public ConnectRequest redirectUri(String redirectUri) {
this.redirect_uri = redirectUri;
return this;
}
public ConnectRequest grantType(GrantType grantType) {
this.grant_type = grantType.getDescription();
return this;
}
public ConnectRequest refreshToken(String refreshToken) {
this.refresh_token = refreshToken;
return this;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("ConnectRequest{");
sb.append("client_id='").append(client_id).append('\'');
sb.append(", client_secret='").append(client_secret).append('\'');
sb.append(", code='").append(code).append('\'');
sb.append(", redirect_uri='").append(redirect_uri).append('\'');
sb.append(", grant_type='").append(grant_type).append('\'');
sb.append('}');
return sb.toString();
}
}