Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.dasein.cloud.azure.compute.vm;

Created by vmunthiu on 12/11/2014.
 
 public class AzureRoleDetails{
     private String serviceName;
     private String deploymentName;
     private String roleName;
    private AzureRoleDetails(String serviceNameString deploymentNameString roleName){
        this. = serviceName;
        this. = deploymentName;
        this. = roleName;
    }
    public static AzureRoleDetails fromString(String id){
        String[] parts = id.split(":");
        String serviceNamedeploymentNameroleName;
        if (parts.length == 3)    {
            serviceName = parts[0];
            deploymentName = parts[1];
            roleNameparts[2];
        }
        else ifparts.length == 2 ) {
            serviceName = parts[0];
            deploymentName = parts[1];
            roleName = serviceName;
        }
        else {
            serviceName = id;
            deploymentName = id;
            roleName = id;
        }
        return new AzureRoleDetails(serviceNamedeploymentNameroleName);
    }
    public String getServiceName() {
        return ;
    }
    public String getDeploymentName() {
        return ;
    }
    public String getRoleName() {
        return ;
    }
New to GrepCode? Check out our FAQ X