public class PushSync
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Configuration options to be applied to the identity pool.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
applicationArns
List of SNS platform application ARNs that could be used by clients.
|
private java.lang.String |
roleArn
A role configured to allow Cognito to call SNS on behalf of the
developer.
|
Constructor and Description |
---|
PushSync() |
Modifier and Type | Method and Description |
---|---|
PushSync |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getApplicationArns()
List of SNS platform application ARNs that could be used by clients.
|
java.lang.String |
getRoleArn()
A role configured to allow Cognito to call SNS on behalf of the
developer.
|
int |
hashCode() |
void |
setApplicationArns(java.util.Collection<java.lang.String> applicationArns)
List of SNS platform application ARNs that could be used by clients.
|
void |
setRoleArn(java.lang.String roleArn)
A role configured to allow Cognito to call SNS on behalf of the
developer.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PushSync |
withApplicationArns(java.util.Collection<java.lang.String> applicationArns)
List of SNS platform application ARNs that could be used by clients.
|
PushSync |
withApplicationArns(java.lang.String... applicationArns)
List of SNS platform application ARNs that could be used by clients.
|
PushSync |
withRoleArn(java.lang.String roleArn)
A role configured to allow Cognito to call SNS on behalf of the
developer.
|
private SdkInternalList<java.lang.String> applicationArns
List of SNS platform application ARNs that could be used by clients.
private java.lang.String roleArn
A role configured to allow Cognito to call SNS on behalf of the developer.
public java.util.List<java.lang.String> getApplicationArns()
List of SNS platform application ARNs that could be used by clients.
public void setApplicationArns(java.util.Collection<java.lang.String> applicationArns)
List of SNS platform application ARNs that could be used by clients.
applicationArns
- List of SNS platform application ARNs that could be used by
clients.public PushSync withApplicationArns(java.lang.String... applicationArns)
List of SNS platform application ARNs that could be used by clients.
NOTE: This method appends the values to the existing list (if
any). Use setApplicationArns(java.util.Collection)
or
withApplicationArns(java.util.Collection)
if you want to
override the existing values.
applicationArns
- List of SNS platform application ARNs that could be used by
clients.public PushSync withApplicationArns(java.util.Collection<java.lang.String> applicationArns)
List of SNS platform application ARNs that could be used by clients.
applicationArns
- List of SNS platform application ARNs that could be used by
clients.public void setRoleArn(java.lang.String roleArn)
A role configured to allow Cognito to call SNS on behalf of the developer.
roleArn
- A role configured to allow Cognito to call SNS on behalf of the
developer.public java.lang.String getRoleArn()
A role configured to allow Cognito to call SNS on behalf of the developer.
public PushSync withRoleArn(java.lang.String roleArn)
A role configured to allow Cognito to call SNS on behalf of the developer.
roleArn
- A role configured to allow Cognito to call SNS on behalf of the
developer.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PushSync clone()
clone
in class java.lang.Object