/*
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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.apache.stratos.kubernetes.client.model;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author nirmal
 *
 */
@XmlRootElement
public class ReplicationController {

	private String kind;
	private String id;
	private String creationTimestamp;
	private String selfLink;
	private String apiVersion;
	private Label labels;
	private State desiredState;
	
	public String getKind() {
		return kind;
	}
	public void setKind(String kind) {
		this.kind = kind;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getCreationTimestamp() {
		return creationTimestamp;
	}
	public void setCreationTimestamp(String creationTimestamp) {
		this.creationTimestamp = creationTimestamp;
	}
	public String getSelfLink() {
		return selfLink;
	}
	public void setSelfLink(String selfLink) {
		this.selfLink = selfLink;
	}
	public Label getLabels() {
		return labels;
	}
	public void setLabels(Label labels) {
		this.labels = labels;
	}
	public State getDesiredState() {
		return desiredState;
	}
	public void setDesiredState(State desiredState) {
		this.desiredState = desiredState;
	}
	
	@Override
	public String toString() {
		return "ReplicationController [kind=" + kind + ", id=" + id
				+ ", creationTimestamp=" + creationTimestamp + ", selfLink="
				+ selfLink + ", labels=" + labels + ", desiredState="
				+ desiredState + "]";
	}
	public String getApiVersion() {
		return apiVersion;
	}
	public void setApiVersion(String apiVersion) {
		this.apiVersion = apiVersion;
	}
	
}

@@ -1035,16 +1035,46 @@
 ing id;%0A
+%09private int resourceVersion;%0A
 %09private
@@ -1980,16 +1980,320 @@
 e;%0A%09%7D%0A%09%0A
+%09public String getApiVersion() %7B%0A%09%09return apiVersion;%0A%09%7D%0A%09public void setApiVersion(String apiVersion) %7B%0A%09%09this.apiVersion = apiVersion;%0A%09%7D%0A%09public int getResourceVersion() %7B%0A%09%09return resourceVersion;%0A%09%7D%0A%09public void setResourceVersion(int resourceVersion) %7B%0A%09%09this.resourceVersion = resourceVersion;%0A%09%7D%0A
 %09@Overri
@@ -2295,16 +2295,16 @@
 verride%0A
-
 %09public 
@@ -2385,16 +2385,61 @@
 =%22 + id%0A
+%09%09%09%09+ %22, resourceVersion=%22 + resourceVersion%0A
 %09%09%09%09+ %22,
@@ -2514,16 +2514,47 @@
 ink + %22,
+ apiVersion=%22 + apiVersion + %22,
  labels=
@@ -2554,17 +2554,21 @@
 labels=%22
- 
+%0A%09%09%09%09
 + labels
@@ -2587,21 +2587,17 @@
 dState=%22
-%0A%09%09%09%09
+ 
 + desire
@@ -2617,148 +2617,8 @@
 %0A%09%7D%0A
-%09public String getApiVersion() %7B%0A%09%09return apiVersion;%0A%09%7D%0A%09public void setApiVersion(String apiVersion) %7B%0A%09%09this.apiVersion = apiVersion;%0A%09%7D%0A
 %09%0A%7D%0A

Add resource version to ReplicationController.