public class CMAApiKey extends CMAResource
Constructor and Description |
---|
CMAApiKey()
Create a new api key.
|
Modifier and Type | Method and Description |
---|---|
CMAApiKey |
addEnvironment(java.lang.String environment)
Add environment ids to the api key.
|
java.lang.String |
getAccessToken() |
java.lang.String |
getDescription() |
java.util.List<CMALink> |
getEnvironments() |
java.lang.String |
getName() |
CMALink |
getPreviewApiKey() |
CMAApiKey |
setAccessToken(java.lang.String accessToken) |
CMAApiKey |
setDescription(java.lang.String description)
Update the description of this key.
|
CMAApiKey |
setName(java.lang.String name)
Update the name of the key.
|
CMAApiKey |
setPreviewApiKey(CMALink previewApiKey) |
java.lang.String |
toString() |
getEnvironmentId, getId, getSpaceId, getSystem, getVersion, isArchived, isPublished, setEnvironmentId, setId, setSpaceId, setSystem, setVersion
public java.lang.String getName()
public CMAApiKey setName(java.lang.String name)
name
- new name to be used.public java.lang.String getDescription()
public CMAApiKey setDescription(java.lang.String description)
description
- to be changed to.public java.lang.String getAccessToken()
public CMAApiKey setAccessToken(java.lang.String accessToken)
public CMALink getPreviewApiKey()
public java.util.List<CMALink> getEnvironments()
public CMAApiKey addEnvironment(java.lang.String environment)
environment
- a new environment to be affected by this key.
A link for the payload will be created automatically.public java.lang.String toString()
toString
in class CMAResource
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.