com.softlayer.api.service.network.securitygroup.OrderBinding 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.securitygroup;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.billing.Order;
import com.softlayer.api.service.network.SecurityGroup;
import com.softlayer.api.service.virtual.Guest;
/**
* The SoftLayer_Network_SecurityGroup_OrderBinding data type contains links between security groups and product orders.
*
* @see SoftLayer_Network_SecurityGroup_OrderBinding
*/
@ApiType("SoftLayer_Network_SecurityGroup_OrderBinding")
public class OrderBinding extends Entity {
/**
* The virtual guest associated with the binding
*/
@ApiProperty
protected Guest guest;
public Guest getGuest() {
return guest;
}
public void setGuest(Guest guest) {
this.guest = guest;
}
/**
* The order associated with the binding
*/
@ApiProperty
protected Order order;
public Order getOrder() {
return order;
}
public void setOrder(Order order) {
this.order = order;
}
/**
* The security group associated with the order
*/
@ApiProperty
protected SecurityGroup securityGroup;
public SecurityGroup getSecurityGroup() {
return securityGroup;
}
public void setSecurityGroup(SecurityGroup securityGroup) {
this.securityGroup = securityGroup;
}
/**
* The ID of the Virtual Guest associated with the security group.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long guestId;
public Long getGuestId() {
return guestId;
}
public void setGuestId(Long guestId) {
guestIdSpecified = true;
this.guestId = guestId;
}
protected boolean guestIdSpecified;
public boolean isGuestIdSpecified() {
return guestIdSpecified;
}
public void unsetGuestId() {
guestId = null;
guestIdSpecified = false;
}
/**
* The unique ID for a security group, order, binding
*/
@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 ID of the order associated with the security group.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long orderId;
public Long getOrderId() {
return orderId;
}
public void setOrderId(Long orderId) {
orderIdSpecified = true;
this.orderId = orderId;
}
protected boolean orderIdSpecified;
public boolean isOrderIdSpecified() {
return orderIdSpecified;
}
public void unsetOrderId() {
orderId = null;
orderIdSpecified = false;
}
/**
* The ID of the security group that is associated with the order.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long securityGroupId;
public Long getSecurityGroupId() {
return securityGroupId;
}
public void setSecurityGroupId(Long securityGroupId) {
securityGroupIdSpecified = true;
this.securityGroupId = securityGroupId;
}
protected boolean securityGroupIdSpecified;
public boolean isSecurityGroupIdSpecified() {
return securityGroupIdSpecified;
}
public void unsetSecurityGroupId() {
securityGroupId = null;
securityGroupIdSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.virtual.Guest.Mask guest() {
return withSubMask("guest", com.softlayer.api.service.virtual.Guest.Mask.class);
}
public com.softlayer.api.service.billing.Order.Mask order() {
return withSubMask("order", com.softlayer.api.service.billing.Order.Mask.class);
}
public com.softlayer.api.service.network.SecurityGroup.Mask securityGroup() {
return withSubMask("securityGroup", com.softlayer.api.service.network.SecurityGroup.Mask.class);
}
public Mask guestId() {
withLocalProperty("guestId");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask orderId() {
withLocalProperty("orderId");
return this;
}
public Mask securityGroupId() {
withLocalProperty("securityGroupId");
return this;
}
}
}