@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Subscription extends Object implements Serializable, Cloneable
Describes an Infrastructure Performance subscription.
Constructor and Description |
---|
Subscription() |
Modifier and Type | Method and Description |
---|---|
Subscription |
clone() |
boolean |
equals(Object obj) |
String |
getDestination()
The Region or Availability Zone that's the target for the subscription.
|
String |
getMetric()
The metric used for the subscription.
|
String |
getPeriod()
The data aggregation time for the subscription.
|
String |
getSource()
The Region or Availability Zone that's the source for the subscription.
|
String |
getStatistic()
The statistic used for the subscription.
|
int |
hashCode() |
void |
setDestination(String destination)
The Region or Availability Zone that's the target for the subscription.
|
void |
setMetric(String metric)
The metric used for the subscription.
|
void |
setPeriod(String period)
The data aggregation time for the subscription.
|
void |
setSource(String source)
The Region or Availability Zone that's the source for the subscription.
|
void |
setStatistic(String statistic)
The statistic used for the subscription.
|
String |
toString()
Returns a string representation of this object.
|
Subscription |
withDestination(String destination)
The Region or Availability Zone that's the target for the subscription.
|
Subscription |
withMetric(MetricType metric)
The metric used for the subscription.
|
Subscription |
withMetric(String metric)
The metric used for the subscription.
|
Subscription |
withPeriod(PeriodType period)
The data aggregation time for the subscription.
|
Subscription |
withPeriod(String period)
The data aggregation time for the subscription.
|
Subscription |
withSource(String source)
The Region or Availability Zone that's the source for the subscription.
|
Subscription |
withStatistic(StatisticType statistic)
The statistic used for the subscription.
|
Subscription |
withStatistic(String statistic)
The statistic used for the subscription.
|
public void setSource(String source)
The Region or Availability Zone that's the source for the subscription. For example, us-east-1
.
source
- The Region or Availability Zone that's the source for the subscription. For example,
us-east-1
.public String getSource()
The Region or Availability Zone that's the source for the subscription. For example, us-east-1
.
us-east-1
.public Subscription withSource(String source)
The Region or Availability Zone that's the source for the subscription. For example, us-east-1
.
source
- The Region or Availability Zone that's the source for the subscription. For example,
us-east-1
.public void setDestination(String destination)
The Region or Availability Zone that's the target for the subscription. For example, eu-west-1
.
destination
- The Region or Availability Zone that's the target for the subscription. For example,
eu-west-1
.public String getDestination()
The Region or Availability Zone that's the target for the subscription. For example, eu-west-1
.
eu-west-1
.public Subscription withDestination(String destination)
The Region or Availability Zone that's the target for the subscription. For example, eu-west-1
.
destination
- The Region or Availability Zone that's the target for the subscription. For example,
eu-west-1
.public void setMetric(String metric)
The metric used for the subscription.
metric
- The metric used for the subscription.MetricType
public String getMetric()
The metric used for the subscription.
MetricType
public Subscription withMetric(String metric)
The metric used for the subscription.
metric
- The metric used for the subscription.MetricType
public Subscription withMetric(MetricType metric)
The metric used for the subscription.
metric
- The metric used for the subscription.MetricType
public void setStatistic(String statistic)
The statistic used for the subscription.
statistic
- The statistic used for the subscription.StatisticType
public String getStatistic()
The statistic used for the subscription.
StatisticType
public Subscription withStatistic(String statistic)
The statistic used for the subscription.
statistic
- The statistic used for the subscription.StatisticType
public Subscription withStatistic(StatisticType statistic)
The statistic used for the subscription.
statistic
- The statistic used for the subscription.StatisticType
public void setPeriod(String period)
The data aggregation time for the subscription.
period
- The data aggregation time for the subscription.PeriodType
public String getPeriod()
The data aggregation time for the subscription.
PeriodType
public Subscription withPeriod(String period)
The data aggregation time for the subscription.
period
- The data aggregation time for the subscription.PeriodType
public Subscription withPeriod(PeriodType period)
The data aggregation time for the subscription.
period
- The data aggregation time for the subscription.PeriodType
public String toString()
toString
in class Object
Object.toString()
public Subscription clone()