All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openstack4j.openstack.compute.domain.actions.SecurityGroupActions Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package org.openstack4j.openstack.compute.domain.actions;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;

/**
 * SecurityGroup related Actions
 * 
 * @author Jeremy Unruh
 */
public class SecurityGroupActions implements ServerAction {

    private static final long serialVersionUID = 1L;
    
    @JsonProperty("name")
    private String name;
    
    protected SecurityGroupActions(String name) {
        this.name = name;
    }
    
    public String getName() {
        return name;
    }
    
    public static Add add(String name) {
        return new Add(name);
    }
    
    public static Remove remove(String name) {
        return new Remove(name);
    }
    
    @JsonRootName("addSecurityGroup")
    public static class Add extends SecurityGroupActions {

        private static final long serialVersionUID = 1L;

        public Add(String name) {
            super(name);
        }
    }
    
    @JsonRootName("removeSecurityGroup")
    public static class Remove extends SecurityGroupActions {

        private static final long serialVersionUID = 1L;

        public Remove(String name) {
            super(name);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy