public class PresignedUrlConfig
extends java.lang.Object
implements java.io.Serializable
Configuration for pre-signed S3 URLs.
Constructor and Description |
---|
PresignedUrlConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getExpiresInSec()
How long (in seconds) pre-signed URLs are valid.
|
java.lang.String |
getRoleArn()
The ARN of an IAM role that grants grants permission to download files
from the S3 bucket where the job data/updates are stored.
|
int |
hashCode() |
void |
setExpiresInSec(java.lang.Long expiresInSec)
How long (in seconds) pre-signed URLs are valid.
|
void |
setRoleArn(java.lang.String roleArn)
The ARN of an IAM role that grants grants permission to download files
from the S3 bucket where the job data/updates are stored.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PresignedUrlConfig |
withExpiresInSec(java.lang.Long expiresInSec)
How long (in seconds) pre-signed URLs are valid.
|
PresignedUrlConfig |
withRoleArn(java.lang.String roleArn)
The ARN of an IAM role that grants grants permission to download files
from the S3 bucket where the job data/updates are stored.
|
public java.lang.String getRoleArn()
The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.
Constraints:
Length: 20 - 2048
The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.
public void setRoleArn(java.lang.String roleArn)
The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.
Constraints:
Length: 20 - 2048
roleArn
- The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.
public PresignedUrlConfig withRoleArn(java.lang.String roleArn)
The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
roleArn
- The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.
public java.lang.Long getExpiresInSec()
How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.
Constraints:
Range: 60 - 3600
How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.
public void setExpiresInSec(java.lang.Long expiresInSec)
How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.
Constraints:
Range: 60 - 3600
expiresInSec
- How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.
public PresignedUrlConfig withExpiresInSec(java.lang.Long expiresInSec)
How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 60 - 3600
expiresInSec
- How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.