Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.support.model
Class Service

java.lang.Object
  extended by com.amazonaws.services.support.model.Service
All Implemented Interfaces:
Serializable

public class Service
extends Object
implements Serializable

JSON-formatted object that represents an AWS Service returned by the DescribeServices action.

See Also:
Serialized Form

Constructor Summary
Service()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<Category> getCategories()
          JSON-formatted list of categories that describe the type of support issue a case describes.
 String getCode()
          JSON-formatted string that represents a code for an AWS service returned by DescribeServices response.
 String getName()
          JSON-formatted string that represents the friendly name for an AWS service.
 int hashCode()
           
 void setCategories(Collection<Category> categories)
          JSON-formatted list of categories that describe the type of support issue a case describes.
 void setCode(String code)
          JSON-formatted string that represents a code for an AWS service returned by DescribeServices response.
 void setName(String name)
          JSON-formatted string that represents the friendly name for an AWS service.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Service withCategories(Category... categories)
          JSON-formatted list of categories that describe the type of support issue a case describes.
 Service withCategories(Collection<Category> categories)
          JSON-formatted list of categories that describe the type of support issue a case describes.
 Service withCode(String code)
          JSON-formatted string that represents a code for an AWS service returned by DescribeServices response.
 Service withName(String name)
          JSON-formatted string that represents the friendly name for an AWS service.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Service

public Service()
Method Detail

getCode

public String getCode()
JSON-formatted string that represents a code for an AWS service returned by DescribeServices response. Has a corrsponding name represented by a service.name string.

Returns:
JSON-formatted string that represents a code for an AWS service returned by DescribeServices response. Has a corrsponding name represented by a service.name string.

setCode

public void setCode(String code)
JSON-formatted string that represents a code for an AWS service returned by DescribeServices response. Has a corrsponding name represented by a service.name string.

Parameters:
code - JSON-formatted string that represents a code for an AWS service returned by DescribeServices response. Has a corrsponding name represented by a service.name string.

withCode

public Service withCode(String code)
JSON-formatted string that represents a code for an AWS service returned by DescribeServices response. Has a corrsponding name represented by a service.name string.

Returns a reference to this object so that method calls can be chained together.

Parameters:
code - JSON-formatted string that represents a code for an AWS service returned by DescribeServices response. Has a corrsponding name represented by a service.name string.
Returns:
A reference to this updated object so that method calls can be chained together.

getName

public String getName()
JSON-formatted string that represents the friendly name for an AWS service. Has a corresponding code reprsented by a Service.code string.

Returns:
JSON-formatted string that represents the friendly name for an AWS service. Has a corresponding code reprsented by a Service.code string.

setName

public void setName(String name)
JSON-formatted string that represents the friendly name for an AWS service. Has a corresponding code reprsented by a Service.code string.

Parameters:
name - JSON-formatted string that represents the friendly name for an AWS service. Has a corresponding code reprsented by a Service.code string.

withName

public Service withName(String name)
JSON-formatted string that represents the friendly name for an AWS service. Has a corresponding code reprsented by a Service.code string.

Returns a reference to this object so that method calls can be chained together.

Parameters:
name - JSON-formatted string that represents the friendly name for an AWS service. Has a corresponding code reprsented by a Service.code string.
Returns:
A reference to this updated object so that method calls can be chained together.

getCategories

public List<Category> getCategories()
JSON-formatted list of categories that describe the type of support issue a case describes. Categories are strings that represent a category name and a category code. Category names and codes are passed to AWS Support when you call CreateCase.

Returns:
JSON-formatted list of categories that describe the type of support issue a case describes. Categories are strings that represent a category name and a category code. Category names and codes are passed to AWS Support when you call CreateCase.

setCategories

public void setCategories(Collection<Category> categories)
JSON-formatted list of categories that describe the type of support issue a case describes. Categories are strings that represent a category name and a category code. Category names and codes are passed to AWS Support when you call CreateCase.

Parameters:
categories - JSON-formatted list of categories that describe the type of support issue a case describes. Categories are strings that represent a category name and a category code. Category names and codes are passed to AWS Support when you call CreateCase.

withCategories

public Service withCategories(Category... categories)
JSON-formatted list of categories that describe the type of support issue a case describes. Categories are strings that represent a category name and a category code. Category names and codes are passed to AWS Support when you call CreateCase.

Returns a reference to this object so that method calls can be chained together.

Parameters:
categories - JSON-formatted list of categories that describe the type of support issue a case describes. Categories are strings that represent a category name and a category code. Category names and codes are passed to AWS Support when you call CreateCase.
Returns:
A reference to this updated object so that method calls can be chained together.

withCategories

public Service withCategories(Collection<Category> categories)
JSON-formatted list of categories that describe the type of support issue a case describes. Categories are strings that represent a category name and a category code. Category names and codes are passed to AWS Support when you call CreateCase.

Returns a reference to this object so that method calls can be chained together.

Parameters:
categories - JSON-formatted list of categories that describe the type of support issue a case describes. Categories are strings that represent a category name and a category code. Category names and codes are passed to AWS Support when you call CreateCase.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.