Class Service
- java.lang.Object
-
- com.amazonaws.services.support.model.Service
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Service extends Object implements Serializable, Cloneable
Information about an AWS service returned by the DescribeServices operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Service()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Serviceclone()booleanequals(Object obj)List<Category>getCategories()A list of categories that describe the type of support issue a case describes.StringgetCode()The code for an AWS service returned by the DescribeServices response.StringgetName()The friendly name for an AWS service.inthashCode()voidsetCategories(Collection<Category> categories)A list of categories that describe the type of support issue a case describes.voidsetCode(String code)The code for an AWS service returned by the DescribeServices response.voidsetName(String name)The friendly name for an AWS service.StringtoString()Returns a string representation of this object; useful for testing and debugging.ServicewithCategories(Category... categories)A list of categories that describe the type of support issue a case describes.ServicewithCategories(Collection<Category> categories)A list of categories that describe the type of support issue a case describes.ServicewithCode(String code)The code for an AWS service returned by the DescribeServices response.ServicewithName(String name)The friendly name for an AWS service.
-
-
-
Method Detail
-
setCode
public void setCode(String code)
The code for an AWS service returned by the DescribeServices response. The
Nameelement contains the corresponding friendly name.- Parameters:
code- The code for an AWS service returned by the DescribeServices response. TheNameelement contains the corresponding friendly name.
-
getCode
public String getCode()
The code for an AWS service returned by the DescribeServices response. The
Nameelement contains the corresponding friendly name.- Returns:
- The code for an AWS service returned by the
DescribeServices response. The
Nameelement contains the corresponding friendly name.
-
withCode
public Service withCode(String code)
The code for an AWS service returned by the DescribeServices response. The
Nameelement contains the corresponding friendly name.- Parameters:
code- The code for an AWS service returned by the DescribeServices response. TheNameelement contains the corresponding friendly name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
public void setName(String name)
The friendly name for an AWS service. The
Codeelement contains the corresponding code.- Parameters:
name- The friendly name for an AWS service. TheCodeelement contains the corresponding code.
-
getName
public String getName()
The friendly name for an AWS service. The
Codeelement contains the corresponding code.- Returns:
- The friendly name for an AWS service. The
Codeelement contains the corresponding code.
-
withName
public Service withName(String name)
The friendly name for an AWS service. The
Codeelement contains the corresponding code.- Parameters:
name- The friendly name for an AWS service. TheCodeelement contains the corresponding code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getCategories
public List<Category> getCategories()
A list of categories that describe the type of support issue a case describes. Categories consist of a category name and a category code. Category names and codes are passed to AWS Support when you call CreateCase.
- Returns:
- A list of categories that describe the type of support issue a case describes. Categories consist of 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)
A list of categories that describe the type of support issue a case describes. Categories consist of a category name and a category code. Category names and codes are passed to AWS Support when you call CreateCase.
- Parameters:
categories- A list of categories that describe the type of support issue a case describes. Categories consist of 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)
A list of categories that describe the type of support issue a case describes. Categories consist of a category name and a category code. Category names and codes are passed to AWS Support when you call CreateCase.
NOTE: This method appends the values to the existing list (if any). Use
setCategories(java.util.Collection)orwithCategories(java.util.Collection)if you want to override the existing values.- Parameters:
categories- A list of categories that describe the type of support issue a case describes. Categories consist of a category name and a category code. Category names and codes are passed to AWS Support when you call CreateCase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withCategories
public Service withCategories(Collection<Category> categories)
A list of categories that describe the type of support issue a case describes. Categories consist of a category name and a category code. Category names and codes are passed to AWS Support when you call CreateCase.
- Parameters:
categories- A list of categories that describe the type of support issue a case describes. Categories consist of a category name and a category code. Category names and codes are passed to AWS Support when you call CreateCase.- Returns:
- Returns a reference to this 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-