1. Kresimir Popovic
  2. as3awsSDK

Source

as3awsSDK / src / com / amazonaws / services / sqs / model / ChangeMessageVisibilityBatchRequestEntry.as

/**
 * Copyright (C) 2011 Josip Juraj Strossmayer University of Osijek (FACULTY OF ELECTRICAL ENGINEERING)
 *
 * author: Krešimir Popović
 * e-mail: popovic@etfos.hr
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.amazonaws.services.sqs.model
{
	import com.amazonaws.services.sqs.ChangeMessageVisibilityBatchEnum;
	
	import org.as3commons.lang.StringBuffer;

	public class ChangeMessageVisibilityBatchRequestEntry
	{		
		private var _id: String;
		
		private var _receiptHandle: String;
		
		[Inspectable(name="VisibilityTimeout", defaultValue=NaN, verbose=1, type="Number", category="Other")]
		private var _visibilityTimeout: Number;

		public function ChangeMessageVisibilityBatchRequestEntry(id: String = null, receiptHandle: String = null)
		{
			this._id = id;
			this._receiptHandle = receiptHandle;
		}		
		
		public function getId():String
		{
			return _id;
		}

		public function setId(id:String):void
		{
			this._id = id;
		}
		
		public function withId(id:String):ChangeMessageVisibilityBatchRequestEntry
		{
			this._id = id;
			return this;
		}

		public function getReceiptHandle():String
		{
			return _receiptHandle;
		}

		public function setReceiptHandle(receiptHandle:String):void
		{
			this._receiptHandle = receiptHandle;
		}
		
		public function withReceiptHandle(receiptHandle:String):ChangeMessageVisibilityBatchRequestEntry
		{
			this._receiptHandle = receiptHandle;
			return this;
		}

		public function getVisibilityTimeout():Number
		{
			return _visibilityTimeout;
		}

		public function setVisibilityTimeout(visibilityTimeout:Number):void
		{
			this._visibilityTimeout = visibilityTimeout;
		}
		
		public function withVisibilityTimeout(visibilityTimeout:Number):ChangeMessageVisibilityBatchRequestEntry
		{
			this._visibilityTimeout = visibilityTimeout;
			return this;
		}
		
		/**
		 * Returns a string representation of this object; useful for testing and debugging.
		 * <p/>  
		 * @return A string representation of this object. 
		 * 
		 */
		public function toString(): String {
			return new StringBuffer().append(ChangeMessageVisibilityBatchEnum.ID).append("=").append(_id).append("\n")
				  .append(ChangeMessageVisibilityBatchEnum.RECEIPT_HANDLE).append("=").append(_receiptHandle).append("\n")
				  .append(ChangeMessageVisibilityBatchEnum.VISIBILITY_TIMEOUT).append("=").append(_visibilityTimeout).toString();
		}	

	} // end of class "com.amazonaws.services.sqs.model.ChangeMessageVisibilityBatchRequestEntry"
} // end of package "com.amazonaws.services.sqs.model"