001 /**
002 *
003 */
004 package de.jw.cloud42.core.service;
005
006 import com.xerox.amazonws.ec2.Jec2;
007
008 import de.jw.cloud42.core.domain.AwsCredentials;
009
010 /**
011 * Base class for all functions that the service layer provides.
012 *
013 * @author fbitzer
014 *
015 */
016 public abstract class Cloud42Functions {
017
018 /**
019 * Instance of the Typica interface.
020 */
021 protected Jec2 ec2;
022
023 /**
024 * User AWS credentials
025 */
026 private AwsCredentials credentials;
027
028 /*
029 * The region to use
030 */
031 private String regionUrl;
032
033 public String getRegionUrl() {
034 return regionUrl;
035 }
036
037
038
039 public void setRegionUrl(String regionUrl) {
040 this.regionUrl = regionUrl;
041 }
042
043
044
045 /**
046 * @return the credentials
047 */
048 public AwsCredentials getCredentials() {
049 return credentials;
050 }
051
052
053
054 /**
055 * @param credentials the credentials to set
056 */
057 public void setCredentials(AwsCredentials credentials) {
058 this.credentials = credentials;
059
060
061
062 }
063
064
065 }