com.softlayer.api.service.network.gateway.member.Attribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of softlayer-api-client Show documentation
Show all versions of softlayer-api-client Show documentation
API client for accessing the SoftLayer API
package com.softlayer.api.service.network.gateway.member;
import com.softlayer.api.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.network.gateway.Member;
import com.softlayer.api.service.security.ssh.Key;
import java.util.concurrent.Future;
/**
* A network gateway member attribute is the attributes associated with a network gateway member.
*
* @see SoftLayer_Network_Gateway_Member_Attribute
*/
@ApiType("SoftLayer_Network_Gateway_Member_Attribute")
public class Attribute extends Entity {
/**
* The gateway member has these attributes.
*/
@ApiProperty
protected Member gatewayMember;
public Member getGatewayMember() {
return gatewayMember;
}
public void setGatewayMember(Member gatewayMember) {
this.gatewayMember = gatewayMember;
}
@ApiProperty
protected Key sshKey;
public Key getSshKey() {
return sshKey;
}
public void setSshKey(Key sshKey) {
this.sshKey = sshKey;
}
/**
* A gateway member's internal identifier.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
idSpecified = true;
this.id = id;
}
protected boolean idSpecified;
public boolean isIdSpecified() {
return idSpecified;
}
public void unsetId() {
id = null;
idSpecified = false;
}
/**
* The previous vSRX version of the gateway software
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String lastvSRXVersion;
public String getLastvSRXVersion() {
return lastvSRXVersion;
}
public void setLastvSRXVersion(String lastvSRXVersion) {
lastvSRXVersionSpecified = true;
this.lastvSRXVersion = lastvSRXVersion;
}
protected boolean lastvSRXVersionSpecified;
public boolean isLastvSRXVersionSpecified() {
return lastvSRXVersionSpecified;
}
public void unsetLastvSRXVersion() {
lastvSRXVersion = null;
lastvSRXVersionSpecified = false;
}
/**
* The gateway member for this attribute.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long memberId;
public Long getMemberId() {
return memberId;
}
public void setMemberId(Long memberId) {
memberIdSpecified = true;
this.memberId = memberId;
}
protected boolean memberIdSpecified;
public boolean isMemberIdSpecified() {
return memberIdSpecified;
}
public void unsetMemberId() {
memberId = null;
memberIdSpecified = false;
}
/**
* Network model of the gateway.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String networkModel;
public String getNetworkModel() {
return networkModel;
}
public void setNetworkModel(String networkModel) {
networkModelSpecified = true;
this.networkModel = networkModel;
}
protected boolean networkModelSpecified;
public boolean isNetworkModelSpecified() {
return networkModelSpecified;
}
public void unsetNetworkModel() {
networkModel = null;
networkModelSpecified = false;
}
/**
* Password of the user name.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String password;
public String getPassword() {
return password;
}
public void setPassword(String password) {
passwordSpecified = true;
this.password = password;
}
protected boolean passwordSpecified;
public boolean isPasswordSpecified() {
return passwordSpecified;
}
public void unsetPassword() {
password = null;
passwordSpecified = false;
}
/**
* The SSH key id of key assigned to Gateway.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long sshKeyId;
public Long getSshKeyId() {
return sshKeyId;
}
public void setSshKeyId(Long sshKeyId) {
sshKeyIdSpecified = true;
this.sshKeyId = sshKeyId;
}
protected boolean sshKeyIdSpecified;
public boolean isSshKeyIdSpecified() {
return sshKeyIdSpecified;
}
public void unsetSshKeyId() {
sshKeyId = null;
sshKeyIdSpecified = false;
}
/**
* Username associated with the gateway.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String username;
public String getUsername() {
return username;
}
public void setUsername(String username) {
usernameSpecified = true;
this.username = username;
}
protected boolean usernameSpecified;
public boolean isUsernameSpecified() {
return usernameSpecified;
}
public void unsetUsername() {
username = null;
usernameSpecified = false;
}
/**
* The vSRX version of the gateway software
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String vSRXVersion;
public String getVSRXVersion() {
return vSRXVersion;
}
public void setVSRXVersion(String vSRXVersion) {
vSRXVersionSpecified = true;
this.vSRXVersion = vSRXVersion;
}
protected boolean vSRXVersionSpecified;
public boolean isVSRXVersionSpecified() {
return vSRXVersionSpecified;
}
public void unsetVSRXVersion() {
vSRXVersion = null;
vSRXVersionSpecified = false;
}
public Service asService(ApiClient client) {
return service(client, id);
}
public static Service service(ApiClient client) {
return client.createService(Service.class, null);
}
public static Service service(ApiClient client, Long id) {
return client.createService(Service.class, id == null ? null : id.toString());
}
/**
* A network gateway member attribute is the attributes associated with a network gateway member.
*
* @see SoftLayer_Network_Gateway_Member_Attribute
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Network_Gateway_Member_Attribute")
public static interface Service extends com.softlayer.api.Service {
public ServiceAsync asAsync();
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* @see SoftLayer_Network_Gateway_Member_Attribute::getObject
*/
@ApiMethod(instanceRequired = true)
public Attribute getObject();
/**
* The gateway member has these attributes.
*
* @see SoftLayer_Network_Gateway_Member_Attribute::getGatewayMember
*/
@ApiMethod(instanceRequired = true)
public Member getGatewayMember();
/**
* @see SoftLayer_Network_Gateway_Member_Attribute::getSshKey
*/
@ApiMethod(instanceRequired = true)
public Key getSshKey();
}
public static interface ServiceAsync extends com.softlayer.api.ServiceAsync {
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* Async version of {@link Service#getObject}
*/
public Future getObject();
public Future> getObject(ResponseHandler callback);
/**
* Async version of {@link Service#getGatewayMember}
*/
public Future getGatewayMember();
/**
* Async callback version of {@link Service#getGatewayMember}
*/
public Future> getGatewayMember(ResponseHandler callback);
/**
* Async version of {@link Service#getSshKey}
*/
public Future getSshKey();
/**
* Async callback version of {@link Service#getSshKey}
*/
public Future> getSshKey(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.network.gateway.Member.Mask gatewayMember() {
return withSubMask("gatewayMember", com.softlayer.api.service.network.gateway.Member.Mask.class);
}
public com.softlayer.api.service.security.ssh.Key.Mask sshKey() {
return withSubMask("sshKey", com.softlayer.api.service.security.ssh.Key.Mask.class);
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask lastvSRXVersion() {
withLocalProperty("lastvSRXVersion");
return this;
}
public Mask memberId() {
withLocalProperty("memberId");
return this;
}
public Mask networkModel() {
withLocalProperty("networkModel");
return this;
}
public Mask password() {
withLocalProperty("password");
return this;
}
public Mask sshKeyId() {
withLocalProperty("sshKeyId");
return this;
}
public Mask username() {
withLocalProperty("username");
return this;
}
public Mask vSRXVersion() {
withLocalProperty("vSRXVersion");
return this;
}
}
}