com.amazonaws.services.sns.model

## クラス Subscription

- java.lang.Object
- - com.amazonaws.services.sns.model.Subscription

- すべての実装されたインタフェース:
    java.io.Serializable

      public class Subscription
      extends java.lang.Object
      implements java.io.Serializable

  A wrapper type for the attributes of an SNS subscription.

  関連項目:
    直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `Subscription()` Default constructor for a new Subscription object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getEndpoint()` The subscription's endpoint (format depends on the protocol).
    `java.lang.String` | `getOwner()` The subscription's owner.
    `java.lang.String` | `getProtocol()` The subscription's protocol.
    `java.lang.String` | `getSubscriptionArn()` The subscription's ARN.
    `java.lang.String` | `getTopicArn()` The ARN of the subscription's topic.
    `int` | `hashCode()`
    `void` | `setEndpoint(java.lang.String endpoint)` The subscription's endpoint (format depends on the protocol).
    `void` | `setOwner(java.lang.String owner)` The subscription's owner.
    `void` | `setProtocol(java.lang.String protocol)` The subscription's protocol.
    `void` | `setSubscriptionArn(java.lang.String subscriptionArn)` The subscription's ARN.
    `void` | `setTopicArn(java.lang.String topicArn)` The ARN of the subscription's topic.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `Subscription` | `withEndpoint(java.lang.String endpoint)` The subscription's endpoint (format depends on the protocol).
    `Subscription` | `withOwner(java.lang.String owner)` The subscription's owner.
    `Subscription` | `withProtocol(java.lang.String protocol)` The subscription's protocol.
    `Subscription` | `withSubscriptionArn(java.lang.String subscriptionArn)` The subscription's ARN.
    `Subscription` | `withTopicArn(java.lang.String topicArn)` The ARN of the subscription's topic.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### Subscription

          public Subscription()

      Default constructor for a new Subscription object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

  - ### メソッドの詳細

    - #### getSubscriptionArn

          public java.lang.String getSubscriptionArn()

      The subscription's ARN.
      戻り値:
        The subscription's ARN.

    - #### setSubscriptionArn

          public void setSubscriptionArn(java.lang.String subscriptionArn)

      The subscription's ARN.
      パラメータ:
        `subscriptionArn` - The subscription's ARN.

    - #### withSubscriptionArn

          public Subscription withSubscriptionArn(java.lang.String subscriptionArn)

      The subscription's ARN.

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

      パラメータ:
        `subscriptionArn` - The subscription's ARN.

    - #### getOwner

          public java.lang.String getOwner()

      The subscription's owner.
      戻り値:
        The subscription's owner.

    - #### setOwner

          public void setOwner(java.lang.String owner)

      The subscription's owner.
      パラメータ:
        `owner` - The subscription's owner.

    - #### withOwner

          public Subscription withOwner(java.lang.String owner)

      The subscription's owner.

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

      パラメータ:
        `owner` - The subscription's owner.

    - #### getProtocol

          public java.lang.String getProtocol()

      The subscription's protocol.
      戻り値:
        The subscription's protocol.

    - #### setProtocol

          public void setProtocol(java.lang.String protocol)

      The subscription's protocol.
      パラメータ:
        `protocol` - The subscription's protocol.

    - #### withProtocol

          public Subscription withProtocol(java.lang.String protocol)

      The subscription's protocol.

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

      パラメータ:
        `protocol` - The subscription's protocol.

    - #### getEndpoint

          public java.lang.String getEndpoint()

      The subscription's endpoint (format depends on the protocol).
      戻り値:
        The subscription's endpoint (format depends on the protocol).

    - #### setEndpoint

          public void setEndpoint(java.lang.String endpoint)

      The subscription's endpoint (format depends on the protocol).
      パラメータ:
        `endpoint` - The subscription's endpoint (format depends on the protocol).

    - #### withEndpoint

          public Subscription withEndpoint(java.lang.String endpoint)

      The subscription's endpoint (format depends on the protocol).

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

      パラメータ:
        `endpoint` - The subscription's endpoint (format depends on the protocol).

    - #### getTopicArn

          public java.lang.String getTopicArn()

      The ARN of the subscription's topic.
      戻り値:
        The ARN of the subscription's topic.

    - #### setTopicArn

          public void setTopicArn(java.lang.String topicArn)

      The ARN of the subscription's topic.
      パラメータ:
        `topicArn` - The ARN of the subscription's topic.

    - #### withTopicArn

          public Subscription withTopicArn(java.lang.String topicArn)

      The ARN of the subscription's topic.

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

      パラメータ:
        `topicArn` - The ARN of the subscription's topic.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`