public class Service extends Object implements Serializable
JSON-formatted object that represents an AWS Service returned by the DescribeServices action.
Constructor and Description |
---|
Service() |
Modifier and Type | Method and Description |
---|---|
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.
|
public String getCode()
public void setCode(String code)
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.public Service withCode(String code)
Returns a reference to this object so that method calls can be chained together.
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.public String getName()
public void setName(String name)
name
- JSON-formatted string that represents the friendly name for an AWS
service. Has a corresponding code reprsented by a Service.code string.public Service withName(String name)
Returns a reference to this object so that method calls can be chained together.
name
- JSON-formatted string that represents the friendly name for an AWS
service. Has a corresponding code reprsented by a Service.code string.public List<Category> getCategories()
public void setCategories(Collection<Category> categories)
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.public Service withCategories(Category... categories)
Returns a reference to this object so that method calls can be chained together.
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.public Service withCategories(Collection<Category> categories)
Returns a reference to this object so that method calls can be chained together.
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.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.