/*******************************************************************************
* Copyright (c) 2011 GigaSpaces Technologies Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package org.cloudifysource.utilitydomain.data;
import com.gigaspaces.annotation.pojo.SpaceId;
/******************
* Wrapper object for the cloud configuration object placed in the management space.
*
* @author barakme
* @since 1.0
*
*/
public class CloudConfigurationHolder {
private String cloudConfiguration;
private String cloudConfigurationFilePath;
private Long id = (long) 1;
public CloudConfigurationHolder() {
}
public CloudConfigurationHolder(final String cloudConfiguration, final String cloudConfigurationFilePath) {
super();
this.cloudConfiguration = cloudConfiguration;
this.cloudConfigurationFilePath = cloudConfigurationFilePath;
}
@SpaceId
public Long getId() {
return id;
}
public void setId(final Long id) {
this.id = id;
}
// use the file path instead.
@Deprecated
public String getCloudConfiguration() {
return this.cloudConfiguration;
}
public void setCloudConfiguration(final String cloudConfiguration) {
this.cloudConfiguration = cloudConfiguration;
}
public String getCloudConfigurationFilePath() {
return cloudConfigurationFilePath;
}
public void setCloudConfigurationFilePath(final String cloudConfigurationFilePath) {
this.cloudConfigurationFilePath = cloudConfigurationFilePath;
}
@Override
public String toString() {
return "CloudConfigurationHolder [cloudConfiguration=" + cloudConfiguration + ", cloudConfigurationFilePath="
+ cloudConfigurationFilePath + "]";
}
}